/* =========================================================================
   SAJIWA — Sarana Aspirasi, Layanan, dan Interaksi Warga
   Pemerintah Kabupaten Hulu Sungai Utara
   Tema: biru pelayanan + hijau kemakmuran. Mobile-first, desktop diperluas.
   ========================================================================= */

@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --ink: #0F2340;
  --ink-2: #1D3A58;
  --muted: #5E7387;
  --muted-2: #8598A9;
  --line: #E1EBF1;
  --line-2: #EDF3F7;
  --blue: #0B5FA5;
  --blue-2: #1273C4;
  --blue-soft: #E9F3FB;
  --green: #0B6B4F;
  --green-2: #12815A;
  --green-3: #1FA34A;
  --green-soft: #E6F6EC;
  --amber: #B97B06;
  --amber-soft: #FDF2DC;
  --red: #C0392B;
  --red-soft: #FDECEA;
  --gold: #B8912A;
  --gold-soft: #FBF3D9;
  --indigo: #4453B2;
  --indigo-soft: #EBEDFC;
  --bg: #F4F8FB;
  --card: #FFFFFF;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 35, 64, .05), 0 2px 8px rgba(15, 35, 64, .04);
  --shadow: 0 6px 20px rgba(15, 35, 64, .07);
  --shadow-lg: 0 20px 45px rgba(11, 43, 76, .16);
  --grad-green: linear-gradient(135deg, #0B6B4F 0%, #12815A 55%, #1FA34A 100%);
  --grad-blue: linear-gradient(135deg, #0B5FA5 0%, #1273C4 100%);
  --grad-hero: linear-gradient(180deg, rgba(8, 34, 58, .25) 0%, rgba(8, 34, 58, 0) 40%, rgba(8, 34, 58, .55) 100%);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(18, 115, 196, .45); outline-offset: 2px; border-radius: 6px; }
.ic { flex: 0 0 auto; vertical-align: middle; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .86em; letter-spacing: -.2px; }
.nowrap { white-space: nowrap; }
.ta-r { text-align: right; }
.txt-green { color: var(--green-2); }
.txt-amber { color: var(--amber); }
.txt-red { color: var(--red); }
.mt-2 { margin-top: 10px; }
.mb-2 { margin-bottom: 10px; }
.inline-form { display: inline-block; margin: 0; }
table.tbl .ta-r form { display: inline-block; margin: 0; }
.txt-break { word-break: break-word; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ------------------------------------------------------------------ chip */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; line-height: 1.3;
  background: var(--line-2); color: var(--ink-2); white-space: nowrap;
}
.chip-xs { padding: 2px 7px; font-size: 10.5px; font-weight: 600; }
.chip-green { background: var(--green-soft); color: #0A6B45; }
.chip-blue { background: var(--blue-soft); color: #0B5FA5; }
.chip-amber { background: var(--amber-soft); color: #8E5C00; }
.chip-red { background: var(--red-soft); color: #A6281D; }
.chip-gold { background: var(--gold-soft); color: #7E5F0F; }
.chip-gray { background: #EEF3F6; color: #5B6C7C; }
.chip-indigo { background: var(--indigo-soft); color: #3946A0; }

/* ------------------------------------------------------------------ btn */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px; border: 1px solid transparent;
  background: var(--card); color: var(--ink); font-weight: 600; font-size: 13.5px;
  cursor: pointer; transition: .18s ease; white-space: nowrap; text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad-green); color: #fff; box-shadow: 0 6px 16px rgba(11, 107, 79, .26); }
.btn-primary:hover { box-shadow: 0 10px 22px rgba(11, 107, 79, .32); }
.btn-blue { background: var(--grad-blue); color: #fff; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-outline:hover { border-color: #BBD3E2; background: #FBFDFE; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); }
.btn-white { background: #fff; color: var(--green); box-shadow: var(--shadow-sm); }
.btn-ghost-white { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-danger { background: var(--red); color: #fff; }
.btn-ghost-danger { background: transparent; color: var(--red); border-color: var(--line); }
.btn-ghost-danger:hover { background: var(--red-soft); }
.btn-sm { padding: 8px 12px; font-size: 12.5px; border-radius: 10px; }
.btn-lg { padding: 14px 20px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* --------------------------------------------------------------- avatar */
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #E7F6EE, #D7EDF9);
  color: var(--green); font-weight: 700; font-size: 14px; overflow: hidden;
}
.avatar-sm { width: 32px; height: 32px; font-size: 11.5px; }
.avatar-lg { width: 52px; height: 52px; font-size: 17px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------------ flash */
.flash {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 12px; margin-bottom: 14px;
  font-size: 13px; line-height: 1.5;
}
.flash-ok { background: var(--green-soft); color: #0A5C3D; border: 1px solid #BFE6CF; }
.flash-err { background: var(--red-soft); color: #96271D; border: 1px solid #F3C9C4; }
.flash-x { margin-left: auto; background: none; border: 0; cursor: pointer; opacity: .6; padding: 0 2px; }
.flash-sandi { font-size: 14px; }

/* =========================================================================
   TOPBAR (warga)
   ========================================================================= */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: var(--grad-green);
  color: #fff;
  box-shadow: 0 4px 18px rgba(7, 55, 39, .18);
}
.topbar-in {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; min-height: 62px;
  max-width: 1180px; margin: 0 auto;
}
.tb-burger { background: none; border: 0; padding: 4px; color: #fff; cursor: pointer; display: inline-flex; }
.tb-brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.tb-brand img { width: 38px; height: 38px; border-radius: 50%; background: #fff; padding: 2px; }
.tb-text { display: flex; flex-direction: column; line-height: 1.18; min-width: 0; }
.tb-text small { font-size: 10px; opacity: .85; letter-spacing: .2px; }
.tb-text strong { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.topnav { display: none; }
.tb-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.tb-ic {
  position: relative; width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(255, 255, 255, .12);
}
.tb-ic:hover { background: rgba(255, 255, 255, .2); }
.tb-dot {
  position: absolute; top: 7px; right: 8px; width: 8px; height: 8px;
  border-radius: 50%; background: #FF5B5B; border: 2px solid #0E7B4F;
}
.tb-user { display: inline-flex; align-items: center; gap: 7px; color: #fff; }
.tb-user .avatar { width: 32px; height: 32px; font-size: 11px; background: rgba(255, 255, 255, .22); color: #fff; border: 1px solid rgba(255, 255, 255, .4); }
.tb-user-name { font-size: 12px; font-weight: 600; display: none; }
.tb-masuk { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); color: #fff; padding: 7px 14px; }

/* -------------------------------------------------------------- drawer */
.drawer-scrim { position: fixed; inset: 0; background: rgba(8, 26, 42, .45); z-index: 90; backdrop-filter: blur(2px); }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(84vw, 320px);
  background: #fff; z-index: 95; transform: translateX(-102%);
  transition: transform .25s ease; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 16px; background: var(--grad-green); color: #fff; }
.drawer-head img { width: 42px; height: 42px; border-radius: 50%; background: #fff; padding: 2px; }
.drawer-head strong { display: block; font-size: 16px; }
.drawer-head small { font-size: 10.5px; opacity: .85; }
.drawer-close { margin-left: auto; background: rgba(255,255,255,.15); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.drawer-nav { padding: 10px 8px; overflow-y: auto; flex: 1; }
.drawer-link {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px;
  border-radius: 12px; font-size: 13.5px; font-weight: 500; color: var(--ink-2);
}
.drawer-link > .ic:last-child { margin-left: auto; color: var(--muted-2); }
.drawer-link.is-active { background: var(--green-soft); color: var(--green); font-weight: 600; }
.dl-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--line-2); display: inline-flex; align-items: center; justify-content: center; color: var(--green); }
.drawer-foot { padding: 12px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.drawer-note { font-size: 10.5px; color: var(--muted-2); text-align: center; margin-top: 4px; }

/* =========================================================================
   STRUKTUR HALAMAN WARGA
   ========================================================================= */
.app-main {
  max-width: 1180px; margin: 0 auto; padding: 14px 12px 96px;
  min-height: 60vh;
}
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.page-head h1 { font-size: 22px; line-height: 1.25; letter-spacing: -.3px; }
.page-head p { color: var(--muted); font-size: 12.5px; max-width: 640px; margin-top: 4px; }
.eyebrow { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; color: var(--green-2); }
.page-back { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.page-back h1 { font-size: 17px; flex: 1; }
.back-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink-2); flex: 0 0 auto;
}
.back-btn:hover { background: var(--line-2); }
.section { margin-top: 22px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec-head h2 { font-size: 16px; letter-spacing: -.2px; }
.sec-more { color: var(--blue-2); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.sec-sub { color: var(--muted); font-size: 11.5px; }
.center-actions { display: flex; justify-content: center; margin: 20px 0; }

/* welcome */
.welcome {
  display: flex; align-items: center; gap: 11px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 10px 13px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.welcome-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grad-green); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.welcome-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.welcome-txt strong { font-size: 13px; }
.welcome-txt span { font-size: 11px; color: var(--muted); }
.welcome-link { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--green); display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }

/* =========================================================================
   HERO BERANDA
   ========================================================================= */
.hero { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.hero-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero-slides::-webkit-scrollbar { display: none; }
.hero-slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: start;
  min-height: 442px; display: flex; flex-direction: column; justify-content: flex-start;
  overflow: hidden;
}
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 42, 70, .35) 0%, rgba(4, 42, 70, 0) 32%, rgba(4, 42, 70, .2) 55%, rgba(6, 48, 38, .72) 100%); }
.hero-content { position: relative; z-index: 2; padding: 15px 14px 0; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.hero-brand { display: flex; align-items: center; gap: 8px; justify-content: center; }
.hero-brand .sajiwa-mark { width: 38px; height: 38px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .25)); }
.hero-wordmark { font-size: 33px; font-weight: 700; color: #fff; letter-spacing: -1px; text-shadow: 0 3px 12px rgba(0, 0, 0, .3); }
.hero-tagline { text-align: center; color: #EAF6FF; font-size: 11.5px; line-height: 1.4; margin-top: 2px; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.hero-officials { margin-top: auto; position: relative; min-height: 0; }
.hero-officials-img { width: 100%; max-width: 420px; max-height: 252px; object-fit: contain; object-position: bottom center; margin: 0 auto -6px; }
.hero-plaques { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 0 2px 13px; }
.plaque {
  background: linear-gradient(135deg, #0B6B4F, #159A4E);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 9px; padding: 7px 6px; text-align: center; color: #fff;
  box-shadow: 0 6px 16px rgba(3, 35, 26, .3);
}
.plaque strong { display: block; font-size: 11px; letter-spacing: .2px; }
.plaque small { display: block; font-size: 8.5px; opacity: .9; line-height: 1.3; }
.hero-slide-news .hero-veil-news { background: linear-gradient(160deg, rgba(6, 40, 70, .82), rgba(6, 48, 38, .55)); }
.hero-content-news { justify-content: flex-end; padding-bottom: 26px; gap: 8px; }
.hero-content-news h2 { color: #fff; font-size: 19px; line-height: 1.28; }
.hero-content-news p { color: #DCEDF7; font-size: 12px; }
.hero-content-news .chip { align-self: flex-start; }
.hero-content-news .btn { align-self: flex-start; margin-top: 4px; }
.hero-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; z-index: 3; }
.hero-dot { width: 6px; height: 6px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .5); cursor: pointer; padding: 0; }
.hero-dot.is-active { width: 18px; border-radius: 4px; background: #fff; }

/* =========================================================================
   MENU CEPAT + STATISTIK
   ========================================================================= */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.quick-tile {
  background: #fff; border: 1px solid var(--line); border-radius: 15px;
  padding: 12px 6px 11px; display: flex; flex-direction: column; align-items: center;
  gap: 8px; text-align: center; box-shadow: var(--shadow-sm); transition: .18s ease;
}
.quick-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #CFE3EE; }
.quick-tile > span:last-child { font-size: 10.8px; font-weight: 600; line-height: 1.3; color: var(--ink-2); }
.qt-ic { width: 40px; height: 40px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; }
.qt-amber { background: #FFF3E0; color: #E08A00; }
.qt-red { background: #FFEBE9; color: #D64545; }
.qt-blue { background: #E7F1FE; color: #1F6FD0; }
.qt-green { background: #E5F7E9; color: #169B4A; }
.qt-indigo { background: #E9EDFD; color: #3B4FBF; }
.qt-emerald { background: #E3F6EF; color: #0B8A61; }

.stat-strip {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; margin-top: 14px;
}
.stat-item { background: #fff; padding: 11px 12px; display: flex; flex-direction: column; gap: 1px; }
.stat-item strong { font-size: 17px; letter-spacing: -.3px; display: inline-flex; align-items: center; gap: 3px; }
.stat-item span { font-size: 10.5px; color: var(--muted); }
.stat-star { color: #E3A81B; }

/* =========================================================================
   KARTU LAPORAN (rep-card)
   ========================================================================= */
.home-grid { display: grid; gap: 16px; }
.rep-list { display: grid; gap: 9px; }
.rep-card {
  display: flex; align-items: center; gap: 11px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 9px; box-shadow: var(--shadow-sm); transition: .18s ease;
}
.rep-card:hover { border-color: #C9E0EE; box-shadow: var(--shadow); transform: translateY(-1px); }
.rep-thumb {
  width: 78px; height: 66px; border-radius: 10px; overflow: hidden; flex: 0 0 auto;
  background: var(--line-2); display: flex; align-items: center; justify-content: center;
}
.rep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rep-thumb-ph { color: #9DB3C2; }
.rep-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rep-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rep-date { font-size: 10px; color: var(--muted-2); display: inline-flex; align-items: center; gap: 3px; margin-left: auto; }
.rep-code { font-size: 10px; color: var(--muted-2); margin-left: auto; font-family: ui-monospace, monospace; }
.rep-title {
  font-size: 12.8px; font-weight: 600; line-height: 1.34; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rep-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 1px; }
.rep-loc { font-size: 10px; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; }
.rep-meta .chip { margin-left: auto; }
.rep-arrow { color: #A9BDCB; flex: 0 0 auto; }
.rep-list-lg .rep-thumb { width: 88px; height: 76px; }
.rep-list-lg .rep-title { font-size: 13.5px; }

/* side cards */
.home-side { display: grid; gap: 14px; align-content: start; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 13px; box-shadow: var(--shadow-sm); }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.side-head h3 { font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.side-head h3 .ic { color: var(--green-2); }
.side-note { font-size: 11.8px; color: var(--muted); line-height: 1.55; }
.live-badge {
  display: inline-flex; align-items: center; gap: 4px; background: #FFE9E7; color: #C93B2C;
  font-size: 9px; font-weight: 700; letter-spacing: .6px; padding: 3px 7px; border-radius: 999px;
}
.live-badge-lg { font-size: 10px; padding: 5px 10px; }
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: #E8443A; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.live-card { display: flex; gap: 9px; background: var(--line-2); border-radius: 12px; padding: 10px; }
.live-ic { width: 34px; height: 34px; border-radius: 10px; background: #fff; color: var(--green); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.live-card strong { display: block; font-size: 12px; line-height: 1.35; }
.live-time { display: block; font-size: 10.5px; color: var(--green); font-weight: 600; margin-top: 2px; }
.live-card small { font-size: 10px; color: var(--muted); }
.side-officials { display: grid; gap: 6px; margin-top: 10px; }
.side-officials a { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; padding: 7px 8px; border-radius: 10px; border: 1px solid var(--line); }
.side-officials a .ic:last-child { margin-left: auto; color: var(--muted-2); }
.side-officials a:hover { background: var(--line-2); }
.mini-prog, .mini-news { display: grid; gap: 10px; }
.mini-prog-item { display: flex; gap: 9px; align-items: center; }
.mp-ic { width: 38px; height: 38px; border-radius: 10px; overflow: hidden; flex: 0 0 auto; background: var(--line-2); }
.mp-ic img { width: 100%; height: 100%; object-fit: cover; }
.mp-txt { min-width: 0; flex: 1; }
.mp-txt strong { font-size: 11.5px; display: block; line-height: 1.3; margin-bottom: 3px; }
.mp-txt small { font-size: 9.5px; color: var(--muted); }
.mini-news-item { display: flex; gap: 9px; }
.mn-thumb { width: 60px; height: 54px; border-radius: 9px; overflow: hidden; flex: 0 0 auto; background: var(--line-2); }
.mn-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mn-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mn-txt strong { font-size: 11.5px; line-height: 1.32; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mn-txt small { font-size: 9.5px; color: var(--muted-2); display: inline-flex; align-items: center; gap: 3px; }

.progress { display: block; height: 6px; border-radius: 999px; background: #E9F0F4; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #12815A, #38B860); }
.progress-sm { height: 4px; }
.mp-txt .progress { margin: 2px 0 2px; }

/* CTA band */
.cta-band {
  margin-top: 22px; border-radius: var(--r-lg); padding: 20px 18px;
  background: linear-gradient(120deg, #0B5FA5, #0B6B4F 75%);
  color: #fff; box-shadow: var(--shadow);
}
.cta-band-in { display: flex; flex-direction: column; gap: 14px; }
.cta-band h2 { font-size: 18px; line-height: 1.3; }
.cta-band p { font-size: 12.5px; opacity: .88; margin-top: 4px; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 9px; }

/* empty states */
.empty-state {
  background: #fff; border: 1px dashed #CFE0EA; border-radius: var(--r);
  padding: 30px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.empty-ic { width: 54px; height: 54px; border-radius: 50%; background: var(--green-soft); color: var(--green-2); display: inline-flex; align-items: center; justify-content: center; }
.empty-state h3 { font-size: 15px; }
.empty-state p { font-size: 12px; color: var(--muted); max-width: 340px; }
.empty-state .btn { margin-top: 6px; }
.empty-mini { font-size: 12px; color: var(--muted); background: var(--line-2); border-radius: 10px; padding: 12px; text-align: center; }
.empty-mini a { color: var(--blue-2); font-weight: 600; }

/* =========================================================================
   TABS / FILTER / FORM
   ========================================================================= */
.tabs {
  display: flex; gap: 6px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 4px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1; text-align: center; padding: 8px 12px; border-radius: 9px;
  font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.tab.is-active { background: var(--green); color: #fff; }
.tab-count { font-size: 10px; background: rgba(0, 0, 0, .07); border-radius: 999px; padding: 1px 6px; }
.tab.is-active .tab-count { background: rgba(255, 255, 255, .22); }
.type-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.type-tab {
  text-align: center; padding: 9px 8px; border-radius: 11px; font-size: 12.5px; font-weight: 600;
  background: #fff; border: 1px solid var(--line); color: var(--muted);
}
.type-tab.is-active { background: var(--grad-green); color: #fff; border-color: transparent; box-shadow: 0 6px 14px rgba(11, 107, 79, .2); }

.filter-bar { display: grid; gap: 9px; margin-bottom: 12px; }
.search-box {
  display: flex; align-items: center; gap: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: 11px; padding: 0 12px; color: var(--muted-2);
}
.search-box input { flex: 1; border: 0; background: none; padding: 11px 0; font-size: 13px; outline: none; color: var(--ink); }
.search-box-sm { padding: 0 9px; }
.search-box-sm input { padding: 8px 0; font-size: 12.5px; }
.filter-selects { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filter-selects::-webkit-scrollbar { display: none; }
.filter-selects select, .filter-bar select {
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px;
  background: #fff; font-size: 12px; color: var(--ink-2); min-width: 0; flex: 0 0 auto;
}
.chips-row { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }
.chip-filter {
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap;
}
.chip-filter.is-active { background: var(--green-soft); border-color: #B9E3CB; color: var(--green); font-weight: 600; }
.list-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 11.5px; color: var(--muted); }
.list-info strong { color: var(--ink); }
.list-info-stat { display: inline-flex; align-items: center; gap: 4px; color: var(--green-2); font-weight: 500; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px 0; flex-wrap: wrap; }
.pager-info { font-size: 11.5px; color: var(--muted); }

/* ------------------------------------------------------------------ form */
.form { display: grid; gap: 14px; }
.form-grid { display: grid; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.req { color: var(--red); }
.opt { color: var(--muted-2); font-weight: 400; font-size: 11px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=password],
.field input[type=number], .field input[type=search], .field input[type=datetime-local], .field input[type=file],
.field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 11px;
  padding: 11px 12px; background: #fff; font-size: 13px; color: var(--ink); outline: none;
  transition: .15s ease;
}
.field textarea { resize: vertical; min-height: 68px; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #8CC3A6; box-shadow: 0 0 0 3px rgba(18, 129, 90, .1); }
.field input:disabled { background: var(--line-2); color: var(--muted); }
.field input[type=file] { padding: 8px; font-size: 12px; }
.hint { font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; line-height: 1.4; }
.input-ic { position: relative; display: flex; align-items: center; }
.input-ic > .ic { position: absolute; left: 12px; color: var(--muted-2); pointer-events: none; }
.input-ic input { padding-left: 38px !important; padding-right: 40px !important; }
.pw-toggle { position: absolute; right: 6px; background: none; border: 0; padding: 7px; color: var(--muted); cursor: pointer; border-radius: 8px; }
.pw-toggle:hover { background: var(--line-2); }
.select-ic { position: relative; display: flex; align-items: center; }
.select-ic > .ic { position: absolute; left: 12px; color: var(--muted-2); pointer-events: none; }
.select-ic select { padding-left: 38px !important; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235E7387' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.form-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.form-actions { margin-top: 4px; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.check input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--green-2); flex: 0 0 auto; }
.link-sm { color: var(--blue-2); font-size: 12px; font-weight: 600; }
.span-2 { grid-column: span 2; }
@media (max-width: 519px) { .form-grid .span-2 { grid-column: span 1; } }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 15px; box-shadow: var(--shadow-sm); }
.form-card-head { display: flex; gap: 11px; margin-bottom: 15px; }
.form-card-head strong { font-size: 13.5px; }
.form-card-head p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.form-ic { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; background: var(--green-soft); color: var(--green); }
.form-ic-red { background: var(--red-soft); color: var(--red); }
.form-ic-blue { background: var(--blue-soft); color: var(--blue-2); }
.form-ic-green { background: var(--green-soft); color: var(--green); }
.info-box {
  display: flex; gap: 9px; background: #F2F9FF; border: 1px solid #D6E9F6;
  border-radius: 11px; padding: 11px 12px; font-size: 11.5px; color: #2C5C7E; line-height: 1.5;
}
.info-box .ic { color: #3E8DBB; margin-top: 1px; }
.info-box-wide { margin-top: 16px; }
.upload-box {
  display: block; border: 1.5px dashed #C8DBE6; border-radius: 12px;
  background: #FBFDFE; padding: 14px; cursor: pointer; position: relative; overflow: hidden;
}
.upload-box input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-empty { display: flex; align-items: center; gap: 10px; }
.upload-ic { width: 40px; height: 40px; border-radius: 11px; background: #fff; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.upload-empty strong { display: block; font-size: 12.5px; }
.upload-empty small { font-size: 10.5px; color: var(--muted); }
.upload-preview { display: block; position: relative; }
.upload-preview img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 9px; }
.upload-remove { position: absolute; right: 8px; bottom: 8px; background: rgba(15, 35, 64, .78); color: #fff; font-size: 10.5px; padding: 4px 8px; border-radius: 7px; display: inline-flex; align-items: center; gap: 4px; }
.upload-box-sm { padding: 10px; }
.img-field { display: grid; gap: 6px; }
.icon-pick-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.icon-opt { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 8px 0; display: inline-flex; justify-content: center; cursor: pointer; color: var(--muted); }
.icon-opt.is-active { background: var(--green-soft); border-color: #9FD3B4; color: var(--green); }

/* =========================================================================
   DETAIL LAPORAN (warga)
   ========================================================================= */
.detail-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 15px; box-shadow: var(--shadow-sm); }
.detail-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.detail-head h2 { font-size: 19px; line-height: 1.3; letter-spacing: -.2px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.detail-meta span { display: inline-flex; align-items: center; gap: 4px; }
.detail-meta-tight { margin-top: 0; }
.detail-progress { margin-top: 14px; display: grid; gap: 6px; font-size: 12px; }
.detail-progress strong { font-size: 13px; color: var(--green); }
.detail-photo { margin: 14px 0 0; border-radius: 12px; overflow: hidden; background: var(--line-2); }
.detail-photo img { width: 100%; max-height: 420px; object-fit: cover; }
.detail-body { margin-top: 14px; }
.detail-body h3 { font-size: 13px; margin-bottom: 6px; }
.detail-body p { font-size: 13px; color: #31465B; line-height: 1.7; margin-bottom: 8px; }
.detail-grid { display: grid; gap: 10px; margin-top: 14px; }
.detail-box { background: var(--line-2); border-radius: 12px; padding: 11px 12px; display: flex; flex-direction: column; gap: 3px; }
.db-label { font-size: 10.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; text-transform: uppercase; letter-spacing: .5px; }
.detail-box strong { font-size: 12.5px; }
.detail-box small { font-size: 10.5px; color: var(--muted); }
.detail-rating { margin-top: 14px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; }
.stars { display: flex; align-items: center; gap: 2px; color: #DEE7ED; margin-top: 4px; }
.stars .on { color: #E9A800; }
.stars strong { margin-left: 6px; font-size: 12px; color: var(--ink); }
.detail-rating p { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

.timeline { display: grid; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.tl-item { display: flex; gap: 11px; position: relative; padding-bottom: 16px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: #fff; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; color: #fff; }
.tl-item.is-done .tl-dot { background: var(--green-2); border-color: var(--green-2); }
.tl-item.is-done::before { background: #B7E2C8; }
.tl-item.is-stop .tl-dot { background: var(--red); border-color: var(--red); }
.tl-body { display: flex; flex-direction: column; }
.tl-body strong { font-size: 12.5px; }
.tl-item.is-done .tl-body strong { color: var(--green); }
.tl-body small { font-size: 10.5px; color: var(--muted); }

.updates { display: grid; gap: 10px; margin-top: 14px; }
.update-item { display: flex; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px; }
.update-item.is-internal { background: #FFFBEF; border-color: #F2E3B8; }
.update-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.update-avatar.is-warga { background: var(--blue-soft); color: var(--blue); }
.update-body { flex: 1; min-width: 0; }
.update-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.5px; }
.update-head strong { font-size: 12px; }
.update-role { font-size: 9.5px; background: var(--line-2); color: var(--muted); padding: 1px 6px; border-radius: 999px; }
.update-head time { margin-left: auto; font-size: 9.5px; color: var(--muted-2); }
.update-body p { font-size: 12px; color: #31465B; margin-top: 4px; line-height: 1.6; }
.updates-tight { margin-top: 0; }

.support-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.support-box > div { flex: 1; min-width: 180px; }
.support-box strong { font-size: 13.5px; }
.support-box p { font-size: 11.5px; color: var(--muted); }
.chat-thread { display: grid; gap: 10px; }
.bubble-row { display: flex; gap: 8px; align-items: flex-end; }
.bubble-row.is-me { flex-direction: row-reverse; }
.bubble { background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 9px 12px; max-width: 86%; }
.bubble-row.is-me .bubble { background: var(--green-soft); border-color: #C6E7D3; border-radius: 14px 14px 4px 14px; }
.bubble-name { font-size: 10px; color: var(--muted); display: block; margin-bottom: 2px; }
.bubble p { font-size: 12.5px; line-height: 1.55; color: #24384C; white-space: pre-wrap; word-break: break-word; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.chat-form textarea { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; resize: vertical; min-height: 46px; }
.chat-form .btn { border-radius: 12px; }
.rating-input { display: flex; gap: 6px; }
.rating-input label { cursor: pointer; color: #DCE6EC; }
.rating-input input { position: absolute; opacity: 0; pointer-events: none; }
.rating-input label span { display: inline-flex; }
.rating-input label:has(input:checked) { color: #E9A800; }
.rating-input label:has(input:checked) ~ label { color: #DCE6EC; }

/* =========================================================================
   DIALOG
   ========================================================================= */
.live-hero {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(125deg, #075A86, #0B6B4F);
  border-radius: var(--r); padding: 18px; color: #fff; margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.live-hero-txt { flex: 1; }
.live-hero h2 { font-size: 18px; margin: 8px 0 6px; line-height: 1.3; }
.live-hero p { font-size: 12px; opacity: .9; display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.live-hero small { display: block; font-size: 11px; opacity: .75; margin-top: 6px; }
.live-hero-ic { width: 74px; height: 74px; border-radius: 20px; background: rgba(255, 255, 255, .14); display: none; align-items: center; justify-content: center; flex: 0 0 auto; }
.official-grid { display: grid; gap: 14px; }
.official-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; box-shadow: var(--shadow-sm); }
.official-photo { width: 110px; flex: 0 0 auto; background: linear-gradient(160deg, #CFEAF2, #EAF6EE); overflow: hidden; display: flex; align-items: flex-end; }
.official-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 28% 18%; }
.official-photo-wakil img { object-position: 78% 18%; }
.official-body { padding: 13px; display: flex; flex-direction: column; gap: 4px; }
.official-body h2 { font-size: 16px; }
.official-title { font-size: 11px; color: var(--muted); }
.official-note { font-size: 11.5px; color: #3C5165; line-height: 1.55; margin-top: 2px; }
.official-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.steps-grid { display: grid; gap: 10px; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px; position: relative; }
.step-no { width: 26px; height: 26px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.step-card strong { font-size: 12.5px; display: block; }
.step-card p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.dialog-layout { display: grid; gap: 16px; }
.dialog-main { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 13px; box-shadow: var(--shadow-sm); }
.dialog-side { display: grid; gap: 12px; align-content: start; }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 11px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.chat-head-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.chat-head-txt strong { font-size: 14px; }
.chat-head-txt span { font-size: 10.5px; color: var(--muted); }
.chat-head .chip { margin-left: auto; }
.chat-intro { background: var(--green-soft); border-radius: 12px; padding: 11px 12px; margin-bottom: 12px; }
.chat-intro p { font-size: 12px; color: #1F5140; line-height: 1.6; }
.chat-intro small { display: block; font-size: 10.5px; color: #4C7A68; margin-top: 5px; }
.chat-thread-lg { gap: 12px; padding: 4px 0 8px; }
.chat-empty { text-align: center; padding: 26px 10px; color: var(--muted); font-size: 11.5px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.chat-form-lg { border-top: 1px solid var(--line); padding-top: 11px; margin-top: 6px; }
.chat-hint { font-size: 10.5px; color: var(--muted-2); margin-top: 7px; display: flex; align-items: center; gap: 4px; }
.official-mini { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; padding: 4px 0 10px; }
.official-mini strong { font-size: 13.5px; }
.official-mini span:last-child { font-size: 10.5px; color: var(--muted); }

/* =========================================================================
   KONTEN: PROGRAM / INFO / LAYANAN
   ========================================================================= */
.card-grid { display: grid; gap: 12px; }
.content-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: .18s ease; }
.content-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cc-img { aspect-ratio: 16 / 9; background: var(--line-2); display: block; }
.cc-img img { width: 100%; height: 100%; object-fit: cover; }
.cc-body { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 5px; }
.cc-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.cc-title { font-size: 14px; line-height: 1.35; }
.cc-text { font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.cc-progress { display: flex; flex-direction: column; gap: 4px; margin-top: 3px; }
.cc-progress small { font-size: 10px; color: var(--muted); }
.cc-progress strong { font-size: 11px; color: var(--green); }
.cc-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 10.5px; color: var(--muted-2); margin-top: 2px; }
.dot-sep { opacity: .5; }

.article-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.article-hero { position: relative; margin: 0; aspect-ratio: 16 / 9; background: var(--line-2); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-hero .chip { position: absolute; left: 12px; top: 12px; background: rgba(255, 255, 255, .93); }
.article-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.article-body h1 { font-size: 21px; line-height: 1.3; letter-spacing: -.3px; }
.article-lead { font-size: 13.5px; font-weight: 500; color: #2A4055; line-height: 1.65; border-left: 3px solid #C9E3D2; padding-left: 11px; }
.article-body > p { font-size: 13px; color: #334A5F; line-height: 1.75; }
.article-cta { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.article-cta strong { font-size: 13.5px; }
.article-cta p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.article-body .progress { margin: 2px 0 4px; }

.news-feature { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.nf-img { aspect-ratio: 16 / 9; background: var(--line-2); }
.nf-img img { width: 100%; height: 100%; object-fit: cover; }
.nf-body { padding: 13px; display: flex; flex-direction: column; gap: 6px; }
.nf-body strong { font-size: 16px; line-height: 1.35; }
.news-list { display: grid; gap: 10px; }
.news-row { display: flex; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 9px; box-shadow: var(--shadow-sm); }
.nr-thumb { width: 88px; height: 76px; border-radius: 10px; overflow: hidden; flex: 0 0 auto; background: var(--line-2); }
.nr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nr-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nr-body strong { font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.svc-grid { display: grid; gap: 10px; }
.svc-card { display: flex; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; box-shadow: var(--shadow-sm); }
.svc-ic { width: 44px; height: 44px; border-radius: 13px; background: var(--green-soft); color: var(--green); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.svc-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.svc-body strong { font-size: 13px; line-height: 1.35; }
.svc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.svc-foot span { display: inline-flex; align-items: center; gap: 4px; }
.svc-detail-head { display: flex; gap: 13px; align-items: flex-start; }
.svc-ic-lg { width: 58px; height: 58px; border-radius: 16px; }
.svc-info-row { display: grid; gap: 9px; }
.svc-info { background: var(--line-2); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 1px; }
.svc-info .ic { color: var(--green-2); }
.svc-info span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.svc-info strong { font-size: 12px; }
.svc-two { display: grid; gap: 16px; margin-top: 6px; }
.svc-two h3 { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.check-list { display: grid; gap: 7px; }
.check-list li { display: flex; gap: 7px; font-size: 12px; color: #334A5F; line-height: 1.5; }
.check-list li .ic { color: var(--green-2); margin-top: 2px; }
.step-list { display: grid; gap: 8px; }
.step-list li { display: flex; gap: 8px; font-size: 12px; color: #334A5F; line-height: 1.5; }
.step-num { width: 21px; height: 21px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }

/* =========================================================================
   PROFIL / NOTIFIKASI
   ========================================================================= */
.profile-hero {
  background: linear-gradient(150deg, #0B5FA5, #0B6B4F);
  border-radius: var(--r-lg); padding: 22px 16px 16px; text-align: center; color: #fff;
  box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.profile-avatar {
  width: 78px; height: 78px; border-radius: 50%; background: #fff; color: var(--green);
  display: inline-flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700;
  border: 4px solid rgba(255, 255, 255, .35); box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}
.profile-hero h1 { font-size: 19px; margin-top: 4px; }
.profile-hero > p { font-size: 12px; opacity: .85; }
.profile-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.profile-chips .chip { background: rgba(255, 255, 255, .18); color: #fff; }
.profile-stats { display: flex; gap: 20px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .2); width: 100%; justify-content: center; }
.profile-stats span { display: flex; flex-direction: column; }
.profile-stats strong { font-size: 17px; }
.profile-stats small { font-size: 10px; opacity: .8; }
.menu-list { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-top: 14px; overflow: hidden; }
.menu-row { display: flex; align-items: center; gap: 11px; padding: 12px 14px; font-size: 13px; font-weight: 500; border-bottom: 1px solid var(--line-2); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; cursor: pointer; }
.menu-row:last-child { border-bottom: 0; }
.menu-row:hover { background: #FAFCFD; }
.menu-row .ic:last-child { margin-left: auto; color: var(--muted-2); }
.menu-row > span:nth-child(2) { flex: 1; }
.mr-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--line-2); color: var(--green); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.menu-row-danger { color: var(--red); }
.menu-row-danger button { display: flex; align-items: center; gap: 11px; width: 100%; background: none; border: 0; color: var(--red); font-weight: 600; cursor: pointer; font-size: 13px; padding: 0; }
.menu-row-danger .mr-ic { background: var(--red-soft); color: var(--red); }
.acc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-top: 12px; overflow: hidden; }
.acc > summary { display: flex; align-items: center; gap: 9px; padding: 13px 14px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary > span { display: inline-flex; align-items: center; gap: 8px; flex: 1; }
.acc > summary > .ic:last-child { color: var(--muted-2); transition: transform .2s; }
.acc[open] > summary > .ic:last-child { transform: rotate(180deg); }
.acc-body { padding: 0 14px 15px; }
.sub-h { font-size: 12.5px; margin: 16px 0 8px; }
.session-list { display: grid; gap: 8px; }
.session-row { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; }
.session-row > div { flex: 1; min-width: 0; }
.session-row strong { display: block; font-size: 12px; }
.session-row small { font-size: 10.5px; color: var(--muted); }

.notif-list { display: grid; gap: 8px; }
.notif-form { margin: 0; }
.notif-row { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 11px 12px; cursor: pointer; position: relative; }
.notif-row:hover { background: #FAFCFD; }
.notif-row.is-new { background: #F3FBF6; border-color: #CBE7D6; }
.notif-ic { width: 36px; height: 36px; border-radius: 11px; background: var(--green-soft); color: var(--green); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.notif-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.notif-body strong { font-size: 12.5px; }
.notif-body span { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.notif-body small { font-size: 10px; color: var(--muted-2); }
.notif-dot { width: 8px; height: 8px; background: var(--green-2); border-radius: 50%; position: absolute; top: 14px; right: 13px; }

/* =========================================================================
   TENTANG / GALAT
   ========================================================================= */
.about-hero { background: linear-gradient(145deg, #0B5FA5, #0B6B4F); color: #fff; border-radius: var(--r-lg); padding: 26px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 7px; box-shadow: var(--shadow); }
.about-brand { display: flex; align-items: center; gap: 8px; }
.about-brand span { font-size: 26px; font-weight: 700; letter-spacing: -.5px; }
.about-hero h1 { font-size: 18px; line-height: 1.35; margin-top: 4px; }
.about-hero p { font-size: 12.5px; opacity: .88; max-width: 520px; }
.about-chips { display: flex; gap: 6px; margin-top: 4px; }
.about-chips .chip { background: rgba(255, 255, 255, .18); color: #fff; }
.feature-grid { display: grid; gap: 10px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px; }
.feature-card strong { display: block; font-size: 12.5px; margin: 7px 0 2px; }
.feature-card p { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.flow { display: grid; gap: 10px; }
.flow li { display: flex; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 12px; }
.flow-no { width: 27px; height: 27px; border-radius: 50%; background: var(--grad-green); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.flow strong { font-size: 12.5px; }
.flow p { font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.contact-card h2 { font-size: 15px; margin-bottom: 10px; }
.contact-grid { display: grid; gap: 10px; }
.contact-grid > span { display: flex; flex-direction: column; gap: 1px; font-size: 11.5px; color: var(--muted); }
.contact-grid .ic { color: var(--green-2); margin-bottom: 3px; }
.contact-grid strong { font-size: 11px; color: var(--ink); text-transform: uppercase; letter-spacing: .4px; }
.about-version { text-align: center; font-size: 10.5px; color: var(--muted-2); margin: 18px 0; }
.error-page { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 44px 20px; text-align: center; max-width: 520px; margin: 24px auto; box-shadow: var(--shadow-sm); }
.error-code { font-size: 56px; font-weight: 700; background: var(--grad-green); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.error-page h1 { font-size: 19px; margin: 8px 0 6px; }
.error-page p { font-size: 12.5px; color: var(--muted); }
.error-actions { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

/* =========================================================================
   FOOTER + BOTTOM NAV
   ========================================================================= */
.site-foot { display: none; background: #08243A; color: #B9CBD8; margin-top: 30px; }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 30px 20px 20px; display: grid; gap: 22px; }
.foot-brand { display: flex; gap: 12px; }
.foot-brand img { width: 46px; height: 46px; border-radius: 50%; background: #fff; padding: 3px; }
.foot-brand strong { color: #fff; font-size: 17px; }
.foot-brand p { font-size: 11.5px; line-height: 1.55; margin-top: 2px; }
.foot-inst { color: #90A9BC; font-size: 10.5px; }
.foot-col h4 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.foot-col a, .foot-col p { display: block; font-size: 11.5px; padding: 3px 0; color: #B9CBD8; }
.foot-col a:hover { color: #fff; }
.foot-col p { display: flex; gap: 6px; align-items: flex-start; line-height: 1.5; }
.foot-col .ic { margin-top: 2px; color: #6E8FA6; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .09); padding: 12px 20px; display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; font-size: 10.5px; max-width: 1180px; margin: 0 auto; }
.foot-links a { color: #C9DAE5; }

.bnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: #fff; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 2px calc(6px + var(--safe-b));
  box-shadow: 0 -6px 22px rgba(15, 35, 64, .07);
}
.bnav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #8AA0B0; padding: 3px 0; font-size: 9.8px; font-weight: 500; position: relative; }
.bnav-item.is-active { color: var(--green); font-weight: 600; }
.bnav-fab { margin-top: -22px; }
.bnav-fab-btn {
  width: 50px; height: 50px; border-radius: 50%; background: var(--grad-green); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  border: 4px solid #fff; box-shadow: 0 8px 18px rgba(11, 107, 79, .35);
}
.bnav-fab .bnav-label { font-size: 9.5px; color: var(--green); font-weight: 600; margin-top: -1px; }
.bnav-label { line-height: 1.2; text-align: center; }

/* =========================================================================
   HALAMAN AUTENTIKASI
   ========================================================================= */
.layout-auth { background: #EDF5F9; }
.auth-wrap { min-height: 100vh; display: grid; }
.auth-visual { display: none; position: relative; overflow: hidden; background: linear-gradient(155deg, #0B5FA5 0%, #0A6C78 45%, #0B6B4F 100%); color: #fff; padding: 38px 42px; flex-direction: column; justify-content: center; }
.auth-visual-bg { position: absolute; inset: 0; background:
  radial-gradient(560px 380px at 82% 12%, rgba(255, 255, 255, .16), transparent 65%),
  radial-gradient(520px 420px at 6% 92%, rgba(31, 163, 74, .35), transparent 70%); }
.auth-visual-in { position: relative; z-index: 2; max-width: 470px; margin: 0 auto; display: flex; flex-direction: column; }
.auth-logos { display: flex; align-items: center; gap: 12px; }
.auth-logos img { width: 54px; height: 54px; border-radius: 50%; background: #fff; padding: 3px; }
.auth-divider { width: 1px; height: 38px; background: rgba(255, 255, 255, .35); }
.auth-inst { display: flex; flex-direction: column; line-height: 1.25; font-size: 14.5px; }
.auth-inst strong { font-weight: 600; }
.auth-brandline { display: flex; align-items: center; gap: 10px; margin-top: 34px; }
.auth-wordmark { font-size: 52px; font-weight: 700; letter-spacing: -2px; line-height: 1; }
.auth-tagline { font-size: 15px; font-weight: 500; margin-top: 10px; opacity: .96; }
.auth-desc { font-size: 13px; line-height: 1.7; margin-top: 12px; opacity: .82; max-width: 420px; }
.auth-officials { margin-top: 18px; position: relative; }
.auth-officials > img { width: 100%; max-width: 400px; }

/* Foto resmi bupati & wakil bupati di halaman masuk */
.auth-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 400px; align-items: end; }
.auth-figures-satu { grid-template-columns: minmax(0, 220px); }
.auth-figure { margin: 0; display: grid; gap: 6px; min-width: 0; }
.auth-photo {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 4 / 4.9; background: rgba(255, 255, 255, .14);
  border-radius: 78px 78px 14px 14px;
  border: 2px solid rgba(255, 255, 255, .55);
  box-shadow: 0 14px 30px rgba(3, 30, 45, .28);
}
.auth-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; display: block; }
.auth-figure figcaption {
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 10px; padding: 6px 8px; text-align: center; min-width: 0;
}
.auth-figure figcaption strong { display: block; font-size: 11.5px; font-weight: 600; line-height: 1.3; }
.auth-figure figcaption small { display: block; font-size: 8.5px; opacity: .82; line-height: 1.35; margin-top: 1px; }

/* Versi ringkas untuk halaman masuk di HP (visual samping disembunyikan) */
.auth-officials-m { display: flex; gap: 10px; justify-content: center; margin-bottom: 14px; }
.aom-item { display: grid; justify-items: center; gap: 4px; min-width: 0; width: 96px; }
.aom-item img {
  width: 74px; height: 88px; object-fit: cover; object-position: center 12%;
  border-radius: 34px 34px 10px 10px; border: 2px solid #fff;
  box-shadow: 0 8px 18px rgba(10, 45, 70, .18); background: #E7F0F6;
}
.aom-item small { font-size: 9.5px; color: var(--ink-2); text-align: center; line-height: 1.25; }
.auth-plaques { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: -4px; }
.auth-plaques span { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); border-radius: 9px; padding: 6px 8px; font-size: 11px; font-weight: 600; text-align: center; }
.auth-plaques small { display: block; font-size: 8.5px; opacity: .8; font-weight: 400; }
.auth-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 16px; }
.auth-tiles span { display: flex; align-items: center; gap: 6px; font-size: 10.5px; background: rgba(255, 255, 255, .1); border-radius: 8px; padding: 6px 8px; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 18px 16px 34px; }
.auth-mobile-head { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.auth-mobile-head img { width: 38px; height: 38px; border-radius: 50%; background: #fff; padding: 2px; }
.auth-mobile-head div { display: flex; flex-direction: column; line-height: 1.2; font-size: 11px; color: var(--ink-2); }
.auth-mobile-head strong { font-weight: 600; }
.auth-back { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.auth-card { background: #fff; border-radius: 20px; padding: 20px; box-shadow: 0 20px 50px rgba(10, 45, 70, .12); border: 1px solid rgba(255, 255, 255, .7); width: 100%; max-width: 430px; margin: 0 auto; }
.auth-card-head { display: flex; gap: 11px; margin-bottom: 16px; }
.auth-badge { width: 44px; height: 44px; border-radius: 14px; background: var(--green-soft); color: var(--green); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.auth-card-head h1 { font-size: 19px; letter-spacing: -.3px; }
.auth-card-head p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.auth-or { display: flex; align-items: center; gap: 10px; margin: 15px 0 11px; font-size: 10.5px; color: var(--muted-2); }
.auth-or::before, .auth-or::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.auth-note { display: flex; gap: 7px; align-items: flex-start; margin-top: 15px; font-size: 10.5px; color: var(--muted); background: var(--line-2); border-radius: 10px; padding: 9px 10px; }
.auth-note .ic { color: var(--green-2); margin-top: 1px; }
.auth-help { max-width: 430px; margin: 14px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.auth-help strong { font-size: 12.5px; }
.auth-help p { font-size: 11.5px; color: var(--muted); margin: 4px 0 8px; line-height: 1.6; }
.auth-switch { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 13px; }
.auth-switch a { color: var(--green); font-weight: 600; }
.auth-card-wide { max-width: 560px; }

/* =========================================================================
   ADMIN
   ========================================================================= */
.layout-admin { background: #F2F7FB; }
.admin-wrap { display: flex; min-height: 100vh; }
.asidenav {
  position: fixed; top: 0; left: 0; bottom: 0; width: 252px; z-index: 80;
  background: #072A3F; color: #C5D7E3; display: flex; flex-direction: column;
  transform: translateX(-102%); transition: transform .25s ease;
}
.asidenav.is-open { transform: translateX(0); }
.aside-head { display: flex; align-items: center; gap: 9px; padding: 16px 14px; background: linear-gradient(140deg, #08324A, #0B5B45); }
.aside-brand { display: flex; align-items: center; gap: 9px; color: #fff; }
.aside-brand img { width: 40px; height: 40px; border-radius: 50%; background: #fff; padding: 2px; }
.aside-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.aside-brand strong { font-size: 15px; letter-spacing: .3px; }
.aside-brand small { font-size: 9.5px; opacity: .7; }
.aside-close { margin-left: auto; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.aside-nav { flex: 1; overflow-y: auto; padding: 10px 9px; }
.aside-grup { font-size: 9px; letter-spacing: 1.3px; text-transform: uppercase; color: #6E8FA6; padding: 12px 10px 6px; }
.aside-link { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 9px; font-size: 12.2px; color: #C5D7E3; }
.aside-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.aside-link.is-active { background: linear-gradient(90deg, rgba(31, 163, 74, .28), rgba(31, 163, 74, .06)); color: #fff; font-weight: 600; box-shadow: inset 2px 0 0 #3DBE74; }
.aside-link .ic { color: #7FA6BC; }
.aside-link.is-active .ic { color: #56D08C; }
.aside-foot { padding: 10px 12px 14px; border-top: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 8px; }
.aside-user { display: flex; align-items: center; gap: 8px; padding: 4px 2px; }
.aside-user .avatar { background: rgba(255, 255, 255, .12); color: #fff; width: 34px; height: 34px; font-size: 11px; }
.aside-user-txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.aside-user-txt strong { font-size: 11.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aside-user-txt small { font-size: 9.5px; color: #86A6BA; }
.aside-foot .btn-outline { background: transparent; border-color: rgba(255, 255, 255, .2); color: #D7E5EE; }
.aside-foot .btn-outline:hover { background: rgba(255, 255, 255, .08); }
.aside-scrim { position: fixed; inset: 0; background: rgba(6, 25, 38, .5); z-index: 75; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-top { background: #fff; border-bottom: 1px solid var(--line); padding: 11px 14px; display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 55; }
.admin-burger { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--ink-2); display: inline-flex; }
.admin-title { min-width: 0; flex: 1; }
.admin-title h1 { font-size: 16px; line-height: 1.25; }
.admin-title p { font-size: 10.5px; color: var(--muted); }
.admin-actions { display: flex; align-items: center; gap: 8px; }
.admin-actions .tb-ic { background: var(--line-2); color: var(--ink-2); width: 34px; height: 34px; }
.admin-actions .tb-dot { border-color: #fff; }
.admin-role { font-size: 10.5px; font-weight: 600; background: var(--green-soft); color: var(--green); padding: 5px 10px; border-radius: 999px; display: none; }
.admin-body { padding: 14px 12px 30px; flex: 1; }
.admin-foot { padding: 14px; font-size: 10px; color: var(--muted-2); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); }

/* admin components */
.dash-hero { background: linear-gradient(125deg, #0B5FA5, #0A6C78 55%, #0B6B4F); border-radius: var(--r); padding: 18px; color: #fff; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.dash-hero .eyebrow { color: #B9F2D3; }
.dash-hero h2 { font-size: 20px; margin-top: 2px; }
.dash-hero p { font-size: 12px; opacity: .86; margin-top: 2px; }
.dash-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 12px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-sm); }
.sc-ic { width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.sc-blue { background: var(--blue-soft); color: var(--blue-2); }
.sc-amber { background: var(--amber-soft); color: var(--amber); }
.sc-green { background: var(--green-soft); color: var(--green-2); }
.sc-indigo { background: var(--indigo-soft); color: var(--indigo); }
.sc-gold { background: var(--gold-soft); color: var(--gold); }
.sc-red { background: var(--red-soft); color: var(--red); }
.stat-card strong { display: block; font-size: 17px; line-height: 1.2; letter-spacing: -.4px; }
.stat-card span:last-child { font-size: 10px; color: var(--muted); }
.dash-grid { display: grid; gap: 13px; margin-top: 13px; }
.dash-col { display: grid; gap: 13px; align-content: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 13px; box-shadow: var(--shadow-sm); }
.panel-accent { border-color: #CBE7D6; background: linear-gradient(180deg, #F7FDF9, #fff); }
.panel-danger { border-color: #F1CFCA; }
.panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; flex-wrap: wrap; }
.panel-head h3 { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.panel-head h3 .ic { color: var(--green-2); }
.panel-sub { font-size: 10.5px; color: var(--muted); }
.panel-empty { font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.panel-head-out { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 13px; margin-bottom: 13px; box-shadow: var(--shadow-sm); flex-wrap: wrap; }
.badge-count { background: var(--amber-soft); color: var(--amber); border-radius: 999px; font-size: 10.5px; font-weight: 700; padding: 2px 8px; }
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 132px; padding-top: 6px; }
.chart-bars-lg { height: 180px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; height: 100%; min-width: 0; }
.chart-val { font-size: 9.5px; color: var(--muted); }
.chart-bar { flex: 1; width: 100%; max-width: 38px; background: #F0F6F9; border-radius: 6px; display: flex; align-items: flex-end; overflow: hidden; }
.chart-fill { width: 100%; background: linear-gradient(180deg, #3EBD77, #0F7A4C); border-radius: 6px; min-height: 4px; }
.chart-label { font-size: 9.5px; color: var(--muted); }
.hbar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 11px; }
.hbar-label { flex: 0 0 34%; color: var(--ink-2); font-size: 11px; line-height: 1.3; }
.hbar-track { flex: 1; height: 7px; background: #EEF4F7; border-radius: 999px; overflow: hidden; display: block; }
.hbar-track > span { display: block; height: 100%; background: linear-gradient(90deg, #12815A, #4CC27C); border-radius: 999px; }
.hbar-track-sm { height: 5px; min-width: 60px; }
.hbar-val { flex: 0 0 26px; text-align: right; font-weight: 600; font-size: 10.5px; }
.hbar-fill-gold { background: linear-gradient(90deg, #D9A82A, #F0CA63) !important; }
.hbar-fill-blue { background: linear-gradient(90deg, #1273C4, #5BA9E8) !important; }
.hbar-fill-amber { background: linear-gradient(90deg, #C9820B, #EDB44B) !important; }
.hbar-fill-green { background: linear-gradient(90deg, #12815A, #4CC27C) !important; }
.hbar-fill-gray { background: linear-gradient(90deg, #8A9AA7, #C3D0D8) !important; }
.queue-list { display: grid; gap: 7px; }
.queue-item { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 10px; border: 1px solid transparent; }
.queue-item:hover { background: #fff; border-color: var(--line); }
.qi-ic { width: 30px; height: 30px; border-radius: 9px; background: var(--amber-soft); color: var(--amber); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.qi-blue { background: var(--blue-soft); color: var(--blue-2); }
.qi-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.qi-txt strong { font-size: 11.5px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.qi-txt small { font-size: 10px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.queue-item-lg { padding: 10px; border-color: var(--line); }
.dot-badge { width: 8px; height: 8px; border-radius: 50%; background: #E8443A; flex: 0 0 auto; }
.mini-user { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.mini-user:last-child { border-bottom: 0; }
.mu-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.mu-txt strong { font-size: 11.5px; }
.mu-txt small { font-size: 10px; color: var(--muted); }
.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.quick-links a { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 500; background: var(--line-2); border-radius: 9px; padding: 9px; color: var(--ink-2); }
.quick-links a:hover { background: var(--green-soft); color: var(--green); }
.stat-mini-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; margin-bottom: 12px; font-size: 11.5px; color: var(--muted); }
.stat-mini-row strong { color: var(--ink); }
.stat-mini-row .ta-r { margin-left: auto; }

/* admin lists */
.adm-list { display: grid; gap: 8px; }
.adm-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 9px 11px; box-shadow: var(--shadow-sm); }
a.adm-row:hover { border-color: #C8E0EE; box-shadow: var(--shadow); }
.adm-row-static { cursor: default; }
.adm-thumb { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; background: var(--line-2); display: flex; align-items: center; justify-content: center; color: #9CB2C0; flex: 0 0 auto; }
.adm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.adm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.adm-top { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.adm-title { font-size: 12.5px; line-height: 1.35; font-weight: 600; }
.adm-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 10px; color: var(--muted); }
.adm-meta span { display: inline-flex; align-items: center; gap: 3px; }
.adm-progress { display: flex; align-items: center; gap: 7px; }
.adm-progress .progress { flex: 1; max-width: 160px; }
.adm-progress small { font-size: 9.5px; color: var(--muted); }
.adm-actions { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.warga-list { display: grid; gap: 10px; }
.warga-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 12px; box-shadow: var(--shadow-sm); }
.wc-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.wc-id { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.wc-id strong { font-size: 13px; }
.wc-id small { font-size: 10.5px; color: var(--muted); word-break: break-word; }
.wc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--line-2); border-radius: 10px; padding: 9px 10px; }
.wc-grid > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wc-grid small { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.wc-grid strong { font-size: 11.5px; word-break: break-word; }
.wc-note { font-size: 10.5px; color: var(--amber); margin-top: 7px; display: flex; gap: 4px; }
.wc-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.split-2 { display: grid; gap: 13px; }
.skpd-list { display: grid; gap: 8px; }
.skpd-row { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 11px; padding: 8px 9px; flex-wrap: wrap; }
.skpd-code { font-size: 9.5px; font-weight: 700; background: var(--green-soft); color: var(--green); padding: 3px 7px; border-radius: 6px; flex: 0 0 auto; }
.skpd-txt { flex: 1; min-width: 120px; display: flex; flex-direction: column; line-height: 1.3; }
.skpd-txt strong { font-size: 11.5px; }
.skpd-txt small { font-size: 9.5px; color: var(--muted); }
.skpd-count { display: flex; gap: 10px; }
.skpd-count span { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.skpd-count strong { font-size: 12px; }
.skpd-count small { font-size: 8.5px; color: var(--muted); }
.skpd-actions { display: flex; gap: 4px; }
.sched-block { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 9px; }
.sched-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-bottom: 8px; font-size: 12px; flex-wrap: wrap; }
.staff-list { display: grid; gap: 7px; }
.staff-row { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-2); padding-bottom: 7px; flex-wrap: wrap; }
.staff-row:last-child { border-bottom: 0; }
.staff-txt { flex: 1; min-width: 130px; display: flex; flex-direction: column; line-height: 1.3; }
.staff-txt strong { font-size: 11.5px; }
.staff-txt small { font-size: 9.5px; color: var(--muted); word-break: break-word; }
.staff-actions { display: flex; gap: 4px; }
.skpd-perf { display: grid; gap: 9px; }
.sp-row { display: grid; gap: 4px; }
.sp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10.5px; }
.sp-head strong { font-size: 11px; }
.sp-head span { color: var(--muted); }
.rating-summary { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.rating-summary strong { font-size: 28px; letter-spacing: -1px; color: var(--green); }
.rating-summary strong span { font-size: 13px; color: var(--muted); font-weight: 500; }
.rating-summary small { font-size: 10.5px; color: var(--muted); }
.foto-row { display: flex; gap: 11px; align-items: flex-start; }
.foto-prev { width: 90px; height: 110px; border-radius: 11px; overflow: hidden; background: var(--line-2); flex: 0 0 auto; display: flex; align-items: flex-end; }
.foto-prev img { width: 100%; height: 100%; object-fit: cover; }
.foto-logo { width: 90px; height: 90px; border-radius: 50%; border: 1px solid var(--line); background: #fff; padding: 6px; }
.foto-logo img { object-fit: contain; }
.foto-row form { flex: 1; gap: 8px; }
.link-row { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 11px; }
.detail-layout { display: grid; gap: 13px; }
.detail-col, .detail-side { display: grid; gap: 13px; align-content: start; }
.info-list { display: grid; gap: 0; }
.info-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 11px; }
.info-list li:last-child { border-bottom: 0; }
.info-list span { color: var(--muted); }
.info-list strong { font-size: 11px; text-align: right; }
.profile-mini { display: flex; align-items: center; gap: 9px; padding: 4px 0 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.profile-mini div { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.profile-mini strong { font-size: 12.5px; }
.profile-mini small { font-size: 10px; color: var(--muted); word-break: break-word; }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 11.5px; min-width: 560px; }
.tbl th { text-align: left; font-size: 9.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); border-bottom: 1px solid var(--line); padding: 7px 8px; white-space: nowrap; }
.tbl td { padding: 8px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #FAFCFD; }
.cell-title { font-size: 11.5px; display: block; line-height: 1.35; }
.cell-sub { font-size: 9.5px; color: var(--muted); }
.detail-cell { max-width: 280px; word-break: break-word; color: #3C5165; }
.tbl .btn { padding: 5px 9px; font-size: 10.5px; }

/* =========================================================================
   RESPONSIF — TABLET & DESKTOP
   ========================================================================= */
@media (min-width: 520px) {
  .quick { grid-template-columns: repeat(6, 1fr); gap: 8px; }
  .quick-tile { padding: 12px 3px; }
  .quick-tile > span:last-child { font-size: 9.5px; }
  .qt-ic { width: 34px; height: 34px; border-radius: 11px; }
  .stat-strip { grid-template-columns: repeat(4, 1fr); }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .official-grid { grid-template-columns: 1fr 1fr; }
  .official-card { flex-direction: column; }
  .official-photo { width: 100%; height: 170px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .stat-cards { grid-template-columns: repeat(3, 1fr); }
  .quick-links { grid-template-columns: repeat(3, 1fr); }
  .footer-dup { display: none; }
}

@media (min-width: 720px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .wc-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .news-feature { flex-direction: row; }
  .nf-img { width: 45%; aspect-ratio: auto; flex: 0 0 45%; }
  .nf-body { flex: 1; justify-content: center; padding: 16px; }
  .article-hero { aspect-ratio: 21 / 9; }
  .svc-info-row { grid-template-columns: repeat(3, 1fr); }
  .svc-two { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .filter-bar { grid-template-columns: minmax(240px, 1fr) auto; align-items: center; }
  .filter-selects { flex-wrap: wrap; }
  .filter-bar-admin .filter-selects { justify-content: flex-end; }
  .page-head h1 { font-size: 26px; }
  .app-main { padding: 20px 20px 104px; }
  .hero-slide { min-height: 470px; }
  .hero-wordmark { font-size: 42px; }
  .hero-officials-img { max-height: 300px; }
  .hero-tagline { font-size: 13px; }
  .hero-brand .sajiwa-mark { width: 46px; height: 46px; }
  .hero-plaques { max-width: 470px; margin: 0 auto; padding-bottom: 18px; }
  .hero-content { padding: 20px 22px 0; }
  .cta-band-in { flex-direction: row; align-items: center; justify-content: space-between; }
  .cta-band h2 { font-size: 20px; }
  .article-body { padding: 22px; }
  .article-body h1 { font-size: 26px; }
  .detail-card { padding: 22px; }
  .detail-head h2 { font-size: 23px; }
  .timeline { padding: 18px; }
}

@media (min-width: 900px) {
  .layout-app .app-main { padding: 22px 24px 40px; }
  .topbar { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 4px 18px rgba(15, 35, 64, .04); }
  .topbar-in { min-height: 70px; padding: 10px 24px; }
  .tb-brand img { width: 42px; height: 42px; background: #fff; }
  .tb-text small { font-size: 10px; color: var(--muted); opacity: 1; }
  .tb-text strong { font-size: 14px; color: var(--ink); }
  .topnav { display: none; align-items: center; gap: 2px; margin-left: 18px; flex: 1; }
  .topnav-link { padding: 8px 11px; border-radius: 9px; font-size: 12.5px; font-weight: 500; color: var(--muted); position: relative; white-space: nowrap; }
  .topnav-link:hover { color: var(--ink); background: var(--line-2); }
  .topnav-link.is-active { color: var(--green); font-weight: 600; }
  .topnav-link.is-active::after { content: ''; position: absolute; left: 11px; right: 11px; bottom: 1px; height: 2px; border-radius: 2px; background: var(--green-2); }
  .tb-actions { margin-left: auto; gap: 8px; }
  .tb-ic { background: var(--line-2); color: var(--ink-2); }
  .tb-ic:hover { background: #E3EDF3; }
  .tb-dot { border-color: #fff; }
  .tb-user { color: var(--ink); }
  .tb-user .avatar { background: var(--grad-green); color: #fff; border: 0; }
  .tb-user-name { display: inline; }
  .tb-masuk { background: var(--grad-green); border-color: transparent; color: #fff; }
  .site-foot { display: block; }
  .bnav { display: none; }
  .home-grid { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 22px; align-items: start; }
  .hero-slide { min-height: 500px; }
  .hero-wordmark { font-size: 50px; letter-spacing: -1.6px; }
  .hero-brand { justify-content: flex-start; }
  .hero-tagline { text-align: left; font-size: 14px; }
  .hero-plaques { max-width: 560px; margin: 0; padding-bottom: 24px; }
  .hero-content { padding: 26px 30px 0; }
  .hero-officials-img { max-width: 520px; max-height: 340px; }
  .plaque strong { font-size: 12.5px; }
  .plaque small { font-size: 9.5px; }
  .quick { gap: 12px; margin-top: 18px; }
  .quick-tile { padding: 16px 6px 14px; gap: 9px; }
  .quick-tile > span:last-child { font-size: 11px; }
  .qt-ic { width: 42px; height: 42px; border-radius: 13px; }
  .stat-strip { margin-top: 18px; }
  .section { margin-top: 30px; }
  .content-card { flex-direction: row; }
  .cc-img { width: 190px; flex: 0 0 190px; aspect-ratio: auto; }
  .cc-body { flex: 1; padding: 14px 16px; }
  .card-grid { gap: 16px; }
  .article-card { max-width: 900px; margin: 0 auto; }
  .page-back { max-width: 1180px; }
  .detail-layout { grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); align-items: start; }
  .detail-side { position: sticky; top: 88px; }
  .admin-body { padding: 20px 22px 34px; }
  .admin-top { padding: 14px 22px; }
  .admin-title h1 { font-size: 19px; }
  .admin-role { display: inline-flex; }
  .dash-grid { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 16px; }
  .stat-cards { grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 16px; }
  .dash-hero { flex-direction: row; align-items: center; justify-content: space-between; padding: 22px 24px; }
  .dash-hero h2 { font-size: 23px; }
  .split-2 { grid-template-columns: 1fr 1fr; align-items: start; }
  .foto-prev { width: 110px; height: 130px; }
  .foto-logo { width: 110px; height: 110px; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { gap: 14px; }
  .dialog-layout { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); align-items: start; }
  .dialog-side { position: sticky; top: 88px; }
  .profile-hero { padding: 30px 24px 20px; }
  .menu-list, .acc { max-width: 720px; margin-left: auto; margin-right: auto; }
  .profile-hero { max-width: 720px; margin-left: auto; margin-right: auto; }
  .official-photo { height: 210px; }
  .live-hero-ic { display: inline-flex; }
  .support-box { padding: 18px; }
  .bubble { max-width: 76%; }
  .app-main > .section, .app-main > .detail-card, .app-main > .list-info, .app-main > .rep-list { }
}

@media (min-width: 1000px) {
  .tb-burger { display: none; }
  .topnav { display: flex; }
  .tb-text { display: none; }
}

@media (min-width: 1120px) {
  .tb-text { display: flex; }
  .asidenav { transform: none; }
  .aside-close { display: none; }
  .aside-scrim { display: none !important; }
  .admin-main { margin-left: 252px; }
  .admin-burger { display: none; }
  .admin-body { padding: 24px 28px 40px; }
  .admin-top { padding: 16px 28px; }
  .admin-wrap { min-height: 100vh; }
  .quick-links { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
  .layout-app .app-main { padding: 26px 32px 48px; }
}

/* halaman auth di desktop */
@media (min-width: 900px) {
  .auth-wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: 100vh; }
  .auth-visual { display: flex; }
  .auth-panel { padding: 34px 44px; background: radial-gradient(700px 460px at 80% 0%, #E9F4FA, transparent 70%), #F7FBFD; }
  .auth-mobile-head { display: none; }
  .auth-officials-m { display: none; }
  .auth-card { max-width: 440px; padding: 26px 28px; }
  .auth-card-wide { max-width: 580px; }
  .auth-help { max-width: 440px; }
}
@media (min-width: 1280px) {
  .auth-visual { padding: 46px 60px; }
}

/* pencetakan */
@media print {
  .topbar, .bnav, .site-foot, .admin-top, .asidenav, .aside-foot, .btn, .page-back { display: none !important; }
  .app-main, .admin-main { padding: 0 !important; margin: 0 !important; }
  .detail-card, .panel, .article-card { box-shadow: none; border-color: #ddd; }
  body { background: #fff; }
}

/* animasi masuk ringan */
@media (prefers-reduced-motion: no-preference) {
  .hero-slide, .rep-card, .panel, .quick-tile { animation: rise .35s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* -------------------------------------------------------------------------
   Penjaga lebar minimum (grid/flex) — mencegah gulir horizontal pada panel
   yang berisi tabel, tombol aksi, atau unggahan berkas.
   ------------------------------------------------------------------------- */
.panel, .dash-col, .detail-col, .detail-side, .admin-main, .admin-body,
.rep-list, .news-list, .card-grid, .warga-list, .skpd-list, .staff-list,
.queue-list, .mini-prog, .mini-news, .form, .form-grid, .split-2, .article-body { min-width: 0; }
.dash-col, .adm-list, .warga-list, .card-grid, .news-list, .rep-list,
.queue-list, .skpd-list, .staff-list { grid-template-columns: minmax(0, 1fr); }
.adm-row { min-width: 0; }
.adm-actions { flex-wrap: wrap; justify-content: flex-end; }
.adm-meta .mono { overflow-wrap: anywhere; }
.foto-row { flex-wrap: wrap; }
.foto-row form { flex: 1 1 160px; min-width: 0; }
.field input, .field select, .field textarea, .search-box input { min-width: 0; }
.table-wrap { max-width: 100%; }
.chart-bars { min-width: 0; width: 100%; }
.form { grid-template-columns: minmax(0, 1fr); }
.field input[type=file], .form input[type=file] { max-width: 100%; min-width: 0; width: 100%; }
.dialog-layout, .dialog-main, .dialog-side, .chat-head, .chat-thread, .bubble-row, .bubble { min-width: 0; }
.bubble p { overflow-wrap: anywhere; }
.chat-head-txt { overflow: hidden; }

/* ringkasan kecil & kartu dialog */
.mini-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 13px;
  overflow: hidden; margin-bottom: 12px;
}
.mini-stats > div { background: #fff; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.mini-stats strong { font-size: 17px; letter-spacing: -.3px; }
.mini-stats span { font-size: 9.8px; color: var(--muted); text-align: center; }
.side-dialog { background: linear-gradient(180deg, #F6FDF9, #fff); border-color: #CFE9D9; }
.skip-link {
  position: absolute; left: 10px; top: -60px; z-index: 200;
  background: #fff; color: var(--green); padding: 10px 16px; border-radius: 10px;
  font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow);
}
.skip-link:focus { top: 10px; }
.hero-wordmark { max-width: 78%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-wordmark { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plaque strong { text-transform: uppercase; letter-spacing: .3px; }
.hero-photos { display: flex; gap: 8px; justify-content: center; align-items: flex-end; padding: 0 4px; }
.hero-photo-frame {
  width: 50%; max-height: 252px; overflow: hidden; border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #E8F3F7, #D7E9E1); border: 3px solid rgba(255, 255, 255, .55);
  border-bottom: 0; display: flex; align-items: flex-end;
}
.hero-photo-frame img { width: 100%; height: 252px; object-fit: cover; object-position: center top; }
@media (min-width: 720px) { .hero-photo-frame, .hero-photo-frame img { max-height: 300px; height: 300px; } }
@media (min-width: 900px) { .hero-photos { max-width: 520px; } .hero-photo-frame, .hero-photo-frame img { max-height: 340px; height: 340px; } }

/* =========================================================================
   PETA SEBARAN (SVG internal, tanpa tile/CDN)
   ========================================================================= */
.peta {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid #CFE4EE; background: #EAF5FA; aspect-ratio: 4 / 3;
}
.peta-lg { aspect-ratio: 16 / 10; border-radius: var(--r); }
.peta-latar { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.peta-pin { position: absolute; width: 26px; height: 26px; transform: translate(-50%, -50%); display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; text-decoration: none; }
.peta-pin-dot {
  width: 16px; height: 16px; border-radius: 50%; background: #1273C4; color: #fff;
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(10, 40, 60, .35);
  display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700;
  transition: transform .15s ease;
}
.peta-pin:hover .peta-pin-dot, .peta-pin:focus-visible .peta-pin-dot { transform: scale(1.35); }
.peta-pin.is-kecamatan .peta-pin-dot { background: #8FA9BB; opacity: .85; }
.pin-blue .peta-pin-dot { background: #1273C4; }
.pin-amber .peta-pin-dot { background: #C9820B; }
.pin-green .peta-pin-dot { background: #12815A; }
.pin-red .peta-pin-dot { background: #D64545; }
.pin-gray .peta-pin-dot { background: #8B9AA6; }
.peta-kosong { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 11.5px; color: var(--muted); background: rgba(255, 255, 255, .55); padding: 12px; margin: 0; }
.peta-legenda { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 10.5px; color: var(--muted); }
.peta-legenda span { display: inline-flex; align-items: center; gap: 4px; }
.peta-legenda i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.geo-box { display: grid; gap: 8px; }
.geo-aksi { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.geo-status { font-size: 11px; color: var(--muted); }
.geo-status.is-ok { color: var(--green); font-weight: 600; }
.geo-status.is-err { color: var(--red); }
.geo-mini { position: relative; height: 150px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #EAF5FA; display: none; }
.geo-mini.is-on { display: block; }
.geo-mini .peta-latar { position: absolute; inset: 0; width: 100%; height: 100%; }
.geo-mini-pin { position: absolute; width: 22px; height: 22px; margin: -14px 0 0 -11px; display: none; }
.geo-mini-pin.is-on { display: block; }
.geo-mini-pin span { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--green-2); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.geo-mini-hint { position: absolute; inset: auto 0 0 0; background: rgba(255, 255, 255, .82); font-size: 9.5px; color: var(--muted); text-align: center; padding: 3px; }
.pin-detail { margin-top: 12px; }
.pin-detail .peta { aspect-ratio: 16 / 9; }
.peta-info { font-size: 11px; color: var(--muted); margin-top: 6px; display: flex; align-items: center; gap: 5px; }

/* peringatan & catatan operasional */
.notice-row { display: grid; gap: 10px; margin-top: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .notice-row { grid-template-columns: 1fr 1fr; } }
.notice-card {
  display: flex; align-items: center; gap: 10px; background: #FFF8E8; border: 1px solid #F0DFAE;
  border-radius: 13px; padding: 11px 13px; color: #7A5B0B;
}
.notice-card:hover { background: #FFF3D6; }
.notice-ic { width: 34px; height: 34px; border-radius: 10px; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: #B5811A; flex: 0 0 auto; }
.notice-card strong { display: block; font-size: 12.5px; }
.notice-card small { font-size: 10.5px; color: #8A6D25; line-height: 1.4; }
.notice-card .ic:last-child { margin-left: auto; opacity: .6; }
.stat-card-alert { border-color: #F1C9C3; background: #FFF9F8; }
.privacy-note { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--muted); background: #F2F8FB; border: 1px solid #D8E8F1; border-radius: 10px; padding: 8px 11px; margin-bottom: 10px; }
.privacy-note .ic { color: var(--blue-2); }
.qi-red { background: var(--red-soft); color: var(--red); }
.kode-otp { letter-spacing: 9px; font-size: 22px; text-align: center; font-weight: 600; }
.auth-2fa-nama { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.otp-tips { font-size: 11px; color: var(--muted); margin-top: 8px; }
.push-state { border: 1px solid var(--line); border-radius: 12px; padding: 11px; margin-top: 8px; background: #FAFCFD; }
.twofa-setup { display: grid; gap: 12px; margin-top: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 520px) { .twofa-setup { grid-template-columns: 176px minmax(0, 1fr); align-items: start; } }
.twofa-qr { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; width: 176px; height: 176px; }
.twofa-qr svg { width: 100%; height: 100%; display: block; }
.twofa-info strong { display: block; font-size: 13px; letter-spacing: .6px; word-break: break-word; }
.backup-list { display: grid; gap: 6px; margin-top: 12px; }
.backup-row { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; padding: 7px 9px; flex-wrap: wrap; font-size: 10.5px; }
.backup-row .mono { flex: 1; min-width: 140px; }
.backup-row small { color: var(--muted); }

/* peta yang bisa di-zoom / dipan */
.peta-dalam { position: absolute; inset: 0; transform-origin: 0 0; transition: transform .12s ease-out; }
.peta-bisa-zoom { touch-action: none; cursor: grab; }
.peta-bisa-zoom:active { cursor: grabbing; }
.peta-zoom {
  position: absolute; right: 8px; top: 8px; z-index: 4;
  display: grid; gap: 4px; background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line); border-radius: 10px; padding: 3px;
  box-shadow: 0 3px 10px rgba(15, 35, 64, .12);
}
.peta-zoom button {
  width: 28px; height: 28px; border: 0; background: transparent; border-radius: 7px;
  font-size: 16px; font-weight: 600; color: var(--ink-2); cursor: pointer; line-height: 1;
}
.peta-zoom button:hover { background: var(--line-2); }
.peta-pin { z-index: 3; }

/* peta pemilih titik (form laporan) */
.pin-map { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid #CFE4EE; background: #EAF5FA; aspect-ratio: 4 / 3; touch-action: none; cursor: crosshair; }
.pin-map .peta-dalam { position: absolute; inset: 0; transform-origin: 0 0; transition: transform .12s ease-out; }
.pin-map-pin {
  position: absolute; width: 30px; height: 30px; margin: -26px 0 0 -15px; z-index: 5;
  display: none; pointer-events: none;
}
.pin-map-pin.is-on { display: block; }
.pin-map-pin span {
  width: 26px; height: 26px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg);
  background: var(--green-2); border: 2px solid #fff; box-shadow: 0 4px 10px rgba(9, 60, 40, .35);
  display: block;
}
.pin-map-pin span::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: #fff; opacity: .85; }
.pin-map-hint {
  position: absolute; left: 8px; right: 56px; bottom: 8px; z-index: 4;
  background: rgba(255, 255, 255, .92); border-radius: 8px; font-size: 10.5px; color: var(--muted);
  padding: 4px 8px; border: 1px solid var(--line);
}
.pin-map-koordinat { font-size: 11px; color: var(--muted); }

/* galeri lampiran */
.galeri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 12px; }
.galeri a, .galeri figure { margin: 0; border-radius: 10px; overflow: hidden; background: var(--line-2); aspect-ratio: 1 / 1; display: block; }
.galeri img { width: 100%; height: 100%; object-fit: cover; }
.galeri-lg { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .galeri { grid-template-columns: repeat(5, 1fr); } .galeri-lg { grid-template-columns: repeat(4, 1fr); } }
.dok-list { display: grid; gap: 7px; margin-top: 10px; }
.dok-row { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; background: #fff; }
.dok-row .dok-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--blue-soft); color: var(--blue-2); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.dok-row .dok-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.dok-row strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dok-row small { font-size: 10px; color: var(--muted); }
.lampiran-baris { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.preview-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 8px; }
.preview-list figure { margin: 0; position: relative; border-radius: 9px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--line-2); }
.preview-list img { width: 100%; height: 100%; object-fit: cover; }
.preview-list figcaption { position: absolute; inset: auto 0 0 0; background: rgba(9, 35, 55, .6); color: #fff; font-size: 9px; padding: 2px 5px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.dok-dipilih { font-size: 11px; color: var(--muted); margin-top: 5px; }
.riwayat-baru { animation: sorot 1.6s ease; }
@keyframes sorot { from { background: #E9F7EF; } to { background: transparent; } }

/* toast notifikasi langsung */
.toast-wadah {
  position: fixed; left: 12px; right: 12px; bottom: calc(76px + var(--safe-b));
  z-index: 120; display: grid; gap: 8px; pointer-events: none;
}
@media (min-width: 900px) { .toast-wadah { left: auto; right: 20px; bottom: 20px; width: 330px; } }
.toast-kartu {
  pointer-events: auto; background: #0F2E45; color: #EAF3F8; border-radius: 12px;
  padding: 10px 12px; box-shadow: 0 12px 30px rgba(6, 30, 45, .35); display: grid; gap: 2px;
  animation: toastMasuk .25s ease both; border-left: 3px solid #3DBE74;
}
.toast-kartu strong { font-size: 12px; }
.toast-kartu span { font-size: 11px; opacity: .85; line-height: 1.4; }
.toast-kartu.is-hilang { opacity: 0; transform: translateY(6px); transition: .4s ease; }
@keyframes toastMasuk { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* =========================================================================
   PETA JALAN (Leaflet + Geoapify) — peta skematis tetap jadi cadangan
   ========================================================================= */
.peta-jalan-wadah { position: relative; }
.peta-jalan {
  position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 14px;
  overflow: hidden; border: 1px solid #CFE4EE; background: #EAF5FA; z-index: 1;
}
.peta-jalan-lg { aspect-ratio: 16 / 10; }
.peta-jalan .leaflet-container { width: 100%; height: 100%; font-family: 'Poppins', system-ui, sans-serif; background: #EAF5FA; }
.peta-jalan .leaflet-control-attribution {
  font-size: 9px; background: rgba(255, 255, 255, .88); padding: 1px 5px; border-radius: 6px 0 0 0;
}
.peta-jalan .leaflet-control-attribution a { color: #0B5FA5; }
.peta-jalan .leaflet-bar a {
  width: 30px; height: 30px; line-height: 30px; font-size: 17px; color: var(--ink-2);
}
.pin-laporan { background: none; border: 0; }
.pin-laporan span {
  display: block; width: var(--ukuran); height: var(--ukuran); border-radius: 50%;
  background: var(--warna, #1273C4); border: 2px solid #fff;
  box-shadow: 0 2px 7px rgba(9, 36, 56, .4);
}
.pin-laporan.is-terpilih span { box-shadow: 0 0 0 4px rgba(18, 115, 196, .22), 0 3px 9px rgba(9, 36, 56, .45); }
.peta-popup { display: grid; gap: 4px; font-size: 11.5px; }
.peta-popup strong { font-size: 12px; line-height: 1.35; }
.peta-popup small { color: #5E7387; font-size: 10px; }
.peta-popup .btn { margin-top: 4px; justify-self: start; }
.peta-cadangan[hidden] { display: none; }
.peta-jalan-wadah.is-cadangan .peta-jalan { display: none; }
.peta-jalan-info { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 7px; font-size: 11px; color: var(--muted); }
.peta-jalan-wadah.is-cadangan .peta-jalan-info { display: none; }
.peta-status-cadangan { display: none; font-size: 10.5px; color: #8A6D25; background: #FFF8E8; border: 1px solid #F0DFAE; border-radius: 8px; padding: 5px 8px; margin-top: 7px; }
.peta-jalan-wadah.is-cadangan .peta-status-cadangan { display: block; }
/* pemilih titik di form laporan */
.peta-pilih .peta-jalan { cursor: crosshair; }
.peta-pilih .geo-aksi { margin-bottom: 7px; }
@media (min-width: 720px) { .peta-jalan { aspect-ratio: 16 / 9; } }

/* pendaftaran & masuk dengan nomor WhatsApp */
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; background: var(--line-2); border-radius: 11px; padding: 4px; margin-bottom: 14px; }
.auth-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 8px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--muted);
}
.auth-tab.is-active { background: #fff; color: var(--green); box-shadow: var(--shadow-sm); }
.auth-tab .ic { opacity: .85; }
.daftar-ringkas { display: grid; gap: 6px; background: #F3FAF6; border: 1px solid #CFE9D9; border-radius: 11px; padding: 10px 11px; margin-bottom: 14px; }
.daftar-ringkas span { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #26513F; }
.daftar-ringkas b { width: 19px; height: 19px; border-radius: 50%; background: var(--green-2); color: #fff; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.otp-demo { margin-top: 10px; font-size: 11.5px; color: #8A6D25; background: #FFF8E8; border: 1px dashed #E8D49A; border-radius: 9px; padding: 7px 9px; text-align: center; }
.auth-kode-aksi { margin-top: 12px; justify-content: space-between; gap: 8px; }
.butuh-verifikasi { background: #FFF8E8; border: 1px solid #F0DFAE; border-radius: 12px; padding: 11px 13px; display: flex; gap: 9px; align-items: flex-start; margin-bottom: 12px; }
.butuh-verifikasi .ic { color: #B5811A; margin-top: 2px; }
.butuh-verifikasi strong { font-size: 12.5px; display: block; }
.butuh-verifikasi p { font-size: 11px; color: #8A6D25; line-height: 1.5; margin-top: 2px; }
.akun-kredensial { display: grid; gap: 8px; grid-template-columns: 1fr; margin-top: 4px; }
@media (min-width: 560px) { .akun-kredensial { grid-template-columns: 1fr 1fr; } }
.akun-kredensial > div { background: var(--line-2); border-radius: 10px; padding: 9px 11px; }
.akun-kredensial small { font-size: 9.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); display: block; }
.akun-kredensial strong { font-size: 12.5px; word-break: break-word; }
.panduan-step { display: grid; gap: 10px; }
.panduan-step li { display: flex; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 12px; }
.panduan-step .ps-no { width: 26px; height: 26px; border-radius: 50%; background: var(--grad-green); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.panduan-step strong { font-size: 12.5px; display: block; }
.panduan-step p { font-size: 11.5px; color: var(--muted); line-height: 1.6; margin-top: 2px; }
.profile-kredensial { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin-top: 12px; }
.profile-kredensial .akun-kredensial > div { background: var(--line-2); }
.profile-kredensial .akun-kredensial strong { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.welcome-warn { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 600; color: #8A5B00; background: #FFF5DC; border: 1px solid #F0DFAE; border-radius: 999px; padding: 1px 7px; margin-top: 2px; width: fit-content; }

/* ============================ Verifikasi berjenjang ======================= */
.verif-list { display: grid; gap: 10px; }
.verif-row {
  display: grid; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 12px; min-width: 0;
}
.verif-main { display: flex; gap: 10px; align-items: center; min-width: 0; }
.verif-txt { min-width: 0; display: grid; gap: 2px; }
.verif-txt strong { font-size: 13.5px; color: var(--ink); }
.verif-txt small { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.verif-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.verif-meta small { font-size: 10.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.verif-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.verif-actions form { margin: 0; }
@media (min-width: 760px) {
  .verif-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: center; gap: 14px; }
  .verif-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
  .verif-actions { justify-content: flex-end; }
}
.verif-steps { display: grid; gap: 8px; counter-reset: vstep; margin: 0; padding: 0; list-style: none; }
.verif-steps li {
  counter-increment: vstep; position: relative; padding: 10px 12px 10px 40px;
  background: var(--line-2); border-radius: 11px; font-size: 11.5px; color: var(--muted); line-height: 1.6;
}
.verif-steps li::before {
  content: counter(vstep); position: absolute; left: 11px; top: 10px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--grad-green); color: #fff; font-size: 10.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.verif-steps strong { color: var(--ink); font-size: 12px; }
.detail-profil { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.detail-profil strong { display: block; font-size: 15px; }
.detail-profil small { font-size: 11.5px; color: var(--muted); }
.detail-list { display: grid; gap: 9px; margin: 0 0 16px; }
.detail-list > div { display: grid; grid-template-columns: 122px minmax(0, 1fr); gap: 10px; align-items: start; }
.detail-list dt { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding-top: 2px; }
.detail-list dd { margin: 0; font-size: 12.5px; color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.verif-timeline { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.verif-timeline li { display: flex; gap: 10px; position: relative; padding-left: 0; }
.verif-timeline .vt-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green-2); margin-top: 5px; flex: 0 0 auto; }
.verif-timeline li.vt-ditolak .vt-dot { background: var(--red); }
.verif-timeline li.vt-naik-tahap .vt-dot { background: #C08A16; }
.verif-timeline strong { font-size: 12.5px; display: block; }
.verif-timeline small { font-size: 10.5px; color: var(--muted); display: block; }
.verif-timeline p { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.55; }
.verif-hint { background: #F3FAF6; border: 1px solid #CFE9D9; border-radius: 12px; padding: 12px; margin-top: 14px; }
.verif-hint h4 { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #0B6B4F; margin-bottom: 5px; }
.verif-hint p { font-size: 11.5px; color: #26513F; line-height: 1.6; }
.verif-hint p.muted { color: var(--muted); margin-top: 5px; }

/* ==================== Pengumuman & agenda daerah ========================= */
.banner-strip { margin: 14px 0 4px; display: grid; gap: 8px; min-width: 0; }
.banner-slides { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.banner-slides::-webkit-scrollbar { display: none; }
.banner-slide {
  flex: 0 0 100%; scroll-snap-align: start; display: flex; align-items: stretch; gap: 11px;
  background: linear-gradient(135deg, #0B6B4F, #12815A 62%, #0B5FA5);
  border-radius: 16px; padding: 10px; color: #fff; min-width: 0; box-shadow: 0 10px 24px rgba(11, 60, 45, .18);
}
.banner-img { flex: 0 0 76px; height: 72px; border-radius: 11px; overflow: hidden; background: rgba(255, 255, 255, .12); }
.banner-img img { width: 100%; height: 100%; object-fit: cover; }
.banner-txt { display: grid; gap: 3px; align-content: center; min-width: 0; }
.banner-txt strong { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.banner-txt small { font-size: 10.5px; color: rgba(255, 255, 255, .84); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.banner-txt .chip { width: fit-content; }
.banner-arrow { display: flex; align-items: center; color: rgba(255, 255, 255, .8); flex: 0 0 auto; }
.banner-dots { display: flex; gap: 5px; justify-content: center; }
.banner-dot { width: 6px; height: 6px; border-radius: 50%; background: #C7D6DF; }
.banner-dot.is-active { background: var(--green); width: 16px; border-radius: 999px; }

.agenda-cards { display: grid; gap: 9px; grid-template-columns: 1fr; }
.agenda-card {
  display: flex; gap: 11px; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: 13px; padding: 10px 11px; min-width: 0;
}
.ag-date {
  flex: 0 0 48px; text-align: center; border-radius: 11px; padding: 6px 4px;
  background: var(--green-soft); color: var(--green); line-height: 1.1;
}
.ag-date strong { display: block; font-size: 17px; }
.ag-date small { font-size: 9.5px; text-transform: uppercase; letter-spacing: .4px; }
.ag-body { min-width: 0; display: grid; gap: 2px; }
.ag-body strong { font-size: 12.5px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ag-body small { font-size: 10.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.agenda-strip { margin-bottom: 14px; }
.agenda-strip-head { margin-bottom: 8px; }
.agenda-strip-head h2 { font-size: 15px; display: flex; align-items: center; gap: 6px; }

.info-grid { display: grid; gap: 11px; grid-template-columns: 1fr; }
.info-card {
  display: grid; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; min-width: 0;
}
.ic-img { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--line-2); }
.ic-img img { width: 100%; height: 100%; object-fit: cover; }
.ic-chip { position: absolute; left: 9px; top: 9px; }
.ic-body { display: grid; gap: 4px; padding: 11px; min-width: 0; }
.ic-body strong { font-size: 13px; color: var(--ink); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.info-card-sm { border-radius: 12px; }
.info-card-sm .ic-body { gap: 5px; }
.ann-thumb { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--line-2); display: block; }
.ann-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ann-preview { width: 100%; max-width: 220px; border-radius: 10px; margin-top: 6px; display: block; }
@media (min-width: 620px) {
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agenda-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .agenda-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .banner-slide { flex-basis: 100%; }
}

/* ------------------------------ Rekap pimpinan --------------------------- */
.rekap-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 4px; }
.rekap-h { font-size: 12.5px; font-weight: 700; color: var(--green); margin-bottom: 7px; }
.rekap-grid .table-wrap { overflow-x: auto; }
.rekap-grid table.tbl { min-width: 0; }
@media (min-width: 1000px) { .rekap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* -------------------- foto latar beranda (admin) ------------------------- */
.hero-bg-preview {
  position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background: #EAF5FA; aspect-ratio: 16 / 7; max-width: 720px;
}
.hero-bg-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hbp-label {
  position: absolute; left: 9px; top: 9px; display: inline-flex; align-items: center; gap: 5px;
  background: rgba(6, 40, 70, .72); color: #fff; font-size: 10px; font-weight: 600;
  border-radius: 999px; padding: 3px 9px;
}

/* Foto latar kustom: lapisan gelap ditambah agar judul & foto pejabat tetap terbaca */
.hero-photo-kustom img { object-position: center 45%; }
.hero-slide-kustom .hero-veil {
  background: linear-gradient(180deg, rgba(4, 42, 70, .44) 0%, rgba(4, 42, 70, .08) 30%,
              rgba(4, 42, 70, .26) 58%, rgba(6, 48, 38, .80) 100%);
}
