:root {
  /* Design System Kolevo: Clean Light Mode + Aksen Hijau (Rasio 90–8–2) */
  --bg-map-overlay: rgba(255, 255, 255, 0.88);
  --bg-sheet: #F6F7F6;
  --bg-card: #FFFFFF;
  --text-primary: #11181C;
  --text-secondary: #687076;
  --border-subtle: rgba(0, 0, 0, 0.06);

  --brand-primary: #15803D;
  --primary-green: var(--brand-primary);
  --brand-hover: #166534;
  --brand-tint: #ECFDF5;
  --brand-border: #A7F3D0;

  /* Alias semantik untuk komponen bersama & halaman Administrator */
  --bg1: var(--bg-sheet);
  --bg2: #EEF1EF;
  --card: var(--bg-card);
  --card-solid: var(--bg-card);
  --card-hover: #FFFFFF;
  --card-border: var(--border-subtle);
  --card-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --nav-bg: var(--bg-map-overlay);
  --text: var(--text-primary);
  --muted: var(--text-secondary);
  --accent: var(--brand-primary);
  --accent-2: #16A34A;
  --accent-hover: var(--brand-hover);
  --accent-t: #FFFFFF;
  --soft: var(--brand-tint);
  --soft-hover: #DCFCE7;
  --line: var(--border-subtle);
  --warn: #9A4D00;
  --warnbg: #FFF6E6;
  --ok: var(--brand-primary);
  --okbg: var(--brand-tint);
  --link: #1D4ED8;
  --danger: #DC2626;
  --danger-bg: rgba(220, 38, 38, 0.08);

  /* Ketinggian aktif & posisi GPU draggable bottom sheet (diperbarui dinamis oleh app.js) */
  --sheet-h: 48dvh;
  --sheet-y: 42dvh;

  /* Lengkungan Halus & Luwes */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 22px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* Bayangan Lembut & Mengambang */
  --shadow-xs: 0 1px 4px rgba(17, 24, 28, 0.04);
  --shadow-sm: 0 4px 14px -3px rgba(17, 24, 28, 0.07), 0 1px 3px rgba(17, 24, 28, 0.04);
  --shadow: 0 10px 28px -6px rgba(17, 24, 28, 0.10), 0 3px 8px -2px rgba(17, 24, 28, 0.05);
  --shadow-lg: 0 20px 44px -10px rgba(17, 24, 28, 0.16), 0 6px 14px -4px rgba(17, 24, 28, 0.07);
  --shadow-glass: 0 8px 24px -6px rgba(17, 24, 28, 0.12), 0 2px 6px -1px rgba(17, 24, 28, 0.06);

  /* Kurva Animasi 60fps (iOS/Android Sheet & Spring) */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --sheet-ease: cubic-bezier(0.32, 0.72, 0, 1);

  color-scheme: light;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

html, body, #root {
  margin: 0;
  padding: 0;
  background-color: #ECEEEF;
}

html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
  -webkit-tap-highlight-color: transparent;
  text-size-adjust: 100%;
  overscroll-behavior-y: none;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text-primary);
  font: 400 15px/1.52 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.008em;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}

body.admin-body {
  --bg-page: #f5f7f6;
  --bg-surface: #ffffff;
  --bg-subtle: #f7f8f7;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --green-primary: #157347;
  --green-soft: #eaf7f0;
  --green-border: #bfe5cf;
  --amber-text: #b45309;
  --amber-soft: #fff7e6;
  --amber-border: #fde68a;
  --radius-card: 20px;
  --radius-item: 14px;
  background-color: var(--bg-page);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.spatial-mode {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

/* Native Touch Feel: nonaktifkan seleksi teks pada kontrol UI, aktifkan pada input & catatan */
button, a, .lc, .ic, .chip, .fchip, .seg, .pill, .mpill, .pol, .rb, .g, .wide, .cap, .ico, .tb,
.flt-btn, .flt-pill, .prog-cap, .bs-handle-wrap, .bs-add, .col-row, .pin, .rem-item, .act-item, .nb-card, .sec-div, #toast, .toast-act {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

input, textarea, select, code, .quote, .note-text, p.m, [contenteditable="true"] {
  user-select: text;
  -webkit-user-select: text;
  -webkit-touch-callout: default;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

/* Cegah auto-zoom iOS Safari saat input/textarea/select aktif (minimal 16px) */
input, textarea, select {
  font-size: 16px;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

a {
  color: inherit;
}

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

/* ---------- Indikator Offline Halus (Top Pill) ---------- */
.netpill {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  z-index: 750;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  max-width: calc(100% - 28px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.85);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  will-change: transform, opacity;
  animation: fadeIn 0.22s var(--sheet-ease);
}

.netdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  flex: none;
  animation: pulse 1.1s ease-in-out infinite alternate;
}

/* ---------- Peta Full-Screen (Edge-to-Edge) & Seamless Fade Status Bar iOS ---------- */
.map-shell {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #ECEEEF;
}

.map-shell #map {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  z-index: 0;
}

.map-top-fade {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(env(safe-area-inset-top) + 48px);
  background: linear-gradient(
    to bottom,
    #ECEEEF 0%,
    rgba(236, 238, 239, 0.85) 45%,
    rgba(236, 238, 239, 0) 100%
  );
  pointer-events: none;
  z-index: 400;
}

/* Filter monokrom abu-abu terang khusus layer tile peta agar pin hijau Kolevo tetap menonjol */
.leaflet-tile-pane,
#pmap .leaflet-tile-pane {
  filter: grayscale(100%) brightness(1.06) contrast(0.9);
}

/* Sembunyikan tombol zoom +/- bawaan Leaflet di layar mobile (pinch-to-zoom) & peta modal Tandai lokasi */
#pmap .leaflet-control-zoom {
  display: none !important;
}

@media (max-width: 768px) {
  .map-shell .leaflet-control-zoom {
    display: none !important;
  }
}

.map-shell .leaflet-control-zoom {
  margin-top: calc(70px + env(safe-area-inset-top, 0px)) !important;
  margin-right: 14px !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: var(--shadow-glass) !important;
}

.map-shell .leaflet-control-zoom a {
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  background: var(--bg-map-overlay) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary) !important;
  border-color: var(--border-subtle) !important;
  font-weight: 700;
}

.map-shell .leaflet-control-zoom a:hover {
  background: var(--bg-card) !important;
  color: var(--brand-primary) !important;
}

.map-shell .leaflet-control-attribution,
#pmap .leaflet-control-attribution {
  font-size: 9px !important;
  line-height: 1.25 !important;
  padding: 1px 5px !important;
  background: rgba(255, 255, 255, 0.68) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 6px 0 0 0;
  color: var(--text-secondary) !important;
  opacity: 0.78;
}

/* ---------- Custom Pin Lokasi (#15803D + Ikon Putih + Label Nama Singkat) ---------- */
.pin-icon-wrap {
  background: transparent !important;
  border: 0 !important;
}

.pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 116px;
  cursor: pointer;
  transform: translate3d(0, 0, 0);
  transition: transform 0.2s var(--spring);
}

.pin:hover {
  transform: translate3d(0, -3px, 0) scale(1.05);
}

.pin-dot {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 6px 16px -3px rgba(21, 128, 61, 0.44), 0 2px 6px rgba(17, 24, 28, 0.16);
}

.pin.d .pin-dot {
  background: #6B9E78;
  border-color: #FFFFFF;
  opacity: 0.94;
}

.pin-dot svg {
  width: 17px;
  height: 17px;
  display: block;
}

.pin-chk {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--brand-primary);
  font-size: 9.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 4px rgba(17, 24, 28, 0.2);
}

.pin-lbl {
  margin-top: 3px;
  max-width: 114px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text-primary);
  font: 700 11px/1.3 "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(17, 24, 28, 0.14);
}

/* Cluster Pin */
.cl {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 6px 18px -3px rgba(21, 128, 61, 0.36), 0 2px 6px rgba(17, 24, 28, 0.14);
  transition: transform 0.2s var(--spring);
}

.cl:hover {
  transform: scale(1.08);
}

.cl.d {
  background: var(--brand-primary);
  color: #FFFFFF;
}

.cl.t {
  background: #FFFFFF;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.cl.m {
  background: var(--brand-tint);
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

/* Penanda Lokasi GPS Pengguna */
.uloc {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(29, 78, 216, 0.22);
  display: grid;
  place-items: center;
  animation: uloc-pulse 2s infinite;
}

.uloc span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2563EB;
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(17, 24, 28, 0.32);
}

@keyframes uloc-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.36); }
  50% { box-shadow: 0 0 0 9px rgba(37, 99, 235, 0); }
}

/* ---------- Kontrol Mengambang (Floating Glassmorphism) ---------- */
.glass {
  background: var(--bg-map-overlay);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-glass);
}

.flt-top {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 8px);
  left: 14px;
  right: 14px;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 500;
  pointer-events: none;
}

.flt-top > * {
  pointer-events: auto;
}

.flt-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-primary);
  text-decoration: none;
  flex: none;
  will-change: transform;
  transition: transform 150ms var(--ease), opacity 150ms var(--ease);
}

.flt-btn:hover {
  background: rgba(255, 255, 255, 0.96);
  transform: translate3d(0, -1px, 0);
}

.flt-btn:active {
  transform: scale(0.97);
}

.flt-btn.is-on {
  background: var(--brand-tint);
  color: var(--brand-primary);
  border-color: var(--brand-border);
}

.flt-btn.is-locating {
  color: var(--brand-primary);
  animation: pulse 0.9s ease-in-out infinite alternate;
}

.flt-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--brand-primary);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  border: 2px solid #FFFFFF;
  font-variant-numeric: tabular-nums;
}

/* Titik indikator mungil di pojok ikon lonceng (pengingat aktif / aktivitas baru kolaborator) */
.flt-notif-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22C55E;
  border: 2px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(34, 197, 94, 0.42);
  pointer-events: none;
}

.flt-notif-dot.is-act {
  background: #EF4444;
  box-shadow: 0 1px 4px rgba(239, 68, 68, 0.38);
}

/* Floating Pill Switcher Koleksi & Branding Bergantian (Tengah Atas) */
.flt-pill {
  height: 44px;
  min-width: 0;
  max-width: calc(100% - 108px);
  padding: 0 13px 0 12px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.012em;
  text-decoration: none;
  will-change: transform;
  transition: transform 150ms var(--ease), opacity 150ms var(--ease);
}

.flt-pill:hover {
  background: rgba(255, 255, 255, 0.96);
  transform: translate3d(0, -1px, 0);
}

.flt-pill:active {
  transform: scale(0.97);
}

.flt-pill-stage {
  display: grid;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  overflow: hidden;
}

.flt-pill-pane {
  grid-area: 1 / 1;
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
}

.flt-pill-info {
  gap: 6px;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 320ms var(--ease), transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.flt-pill.is-active .flt-pill-info {
  gap: 8px;
}

.flt-pill-brand {
  gap: 8px;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  pointer-events: none;
  transition: none;
}

.flt-pill-brand-ico {
  width: 27px;
  height: 27px;
  border-radius: 7.5px;
  display: block;
  flex: none;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: scale(0.84);
  transition: none;
}

.flt-pill-brand-txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  white-space: nowrap;
  text-align: left;
  opacity: 0;
  transform: translate3d(-8px, 0, 0);
  transition: none;
}

.flt-pill-brand-name {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.flt-pill-brand-tag {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  color: #6b7280;
}

/* State A: Branding tampil (ikon masuk dulu, teks meluncur 300ms kemudian) */
.flt-pill[data-pill-phase="brand"] .flt-pill-info {
  opacity: 0;
  transform: translate3d(0, -10px, 0);
  pointer-events: none;
}

.flt-pill[data-pill-phase="brand"] .flt-pill-brand {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 280ms var(--ease), transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.flt-pill[data-pill-phase="brand"] .flt-pill-brand-ico {
  opacity: 1;
  transform: scale(1);
  transition: opacity 300ms var(--ease) 0ms, transform 360ms cubic-bezier(0.22, 1, 0.36, 1) 0ms;
}

.flt-pill[data-pill-phase="brand"] .flt-pill-brand-txt {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 300ms var(--ease) 300ms, transform 360ms cubic-bezier(0.22, 1, 0.36, 1) 300ms;
}

/* Akhir State A: ikon & teks branding menghilang halus ke atas sebelum Info Koleksi masuk */
.flt-pill[data-pill-phase="brand-out"] .flt-pill-info {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  pointer-events: none;
  transition: none;
}

.flt-pill[data-pill-phase="brand-out"] .flt-pill-brand {
  opacity: 0;
  transform: translate3d(0, -10px, 0);
  pointer-events: none;
  transition: opacity 280ms var(--ease), transform 280ms var(--ease);
}

.flt-pill[data-pill-phase="brand-out"] .flt-pill-brand-ico,
.flt-pill[data-pill-phase="brand-out"] .flt-pill-brand-txt {
  opacity: 1;
  transform: none;
  transition: none;
}

.flt-pill-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  flex: none;
}

.flt-pill-ico-svg {
  color: var(--brand-primary);
}

.flt-pill-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flt-pill-sep {
  color: var(--text-secondary);
  opacity: 0.55;
  flex: none;
}

.flt-pill-cnt {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12.5px;
  white-space: nowrap;
  flex: none;
  font-variant-numeric: tabular-nums;
}

.flt-pill-chev {
  color: var(--text-secondary);
  flex: none;
  margin-left: 1px;
}

.flt-pill.is-active {
  cursor: pointer;
  padding: 0 9px 0 13px;
  gap: 8px;
}

.pill-active-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #157347;
  flex-shrink: 0;
}

.pill-reset-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(17, 24, 39, 0.08);
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 140ms var(--ease), transform 120ms var(--ease);
}

.pill-reset-btn:hover {
  background: rgba(17, 24, 39, 0.14);
}

.pill-reset-btn:active {
  transform: scale(0.9);
}

/* Avatar Melingkar (Kanan Atas) */
.flt-avatar-in {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-border);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.flt-pro-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-primary);
  border: 2px solid #FFFFFF;
}

/* ---------- Kontrol Mengambang tepat di atas Bottom Sheet (GPU transform) ---------- */
.flt-above {
  position: fixed;
  left: 14px;
  right: 14px;
  max-width: 520px;
  margin: 0 auto;
  bottom: 12px;
  transform: translate3d(0, calc(-1 * var(--sheet-h, 48dvh)), 0);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  z-index: 450;
  pointer-events: none;
  will-change: transform, opacity;
  transition: transform 280ms var(--sheet-ease), opacity 220ms var(--ease);
}

body.bs-dragging .flt-above,
body.bs-dragging #bsheet {
  transition: none !important;
}

.flt-above.is-hidden {
  opacity: 0;
  transform: translate3d(0, calc(-1 * var(--sheet-h, 48dvh) + 14px), 0);
  pointer-events: none;
}

.flt-above.is-hidden > * {
  pointer-events: none;
}

.flt-above-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  pointer-events: none;
}

.flt-above-left > * {
  pointer-events: auto;
}

.flt-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: none;
  pointer-events: auto;
}

/* Kapsul Progres Mengambang */
.prog-cap {
  height: 44px;
  max-width: 100%;
  padding: 0 14px 0 8px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.prog-cap.is-full {
  padding-right: 8px;
  border-color: var(--brand-border);
}

.prog-toast {
  position: fixed;
  top: calc(68px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  z-index: 480;
  max-width: calc(100vw - 28px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  animation: progToastIn 240ms var(--ease);
  transition: opacity 280ms var(--ease), transform 280ms var(--ease);
}

.prog-toast.is-hiding {
  opacity: 0;
  transform: translate3d(-50%, -8px, 0);
  pointer-events: none;
}

@keyframes progToastIn {
  from {
    opacity: 0;
    transform: translate3d(-50%, -8px, 0) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) scale(1);
  }
}

.prog-ring {
  position: relative;
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
}

.prog-ring svg {
  width: 28px;
  height: 28px;
  transform: rotate(-90deg);
}

.prog-track {
  fill: none;
  stroke: var(--brand-tint);
  stroke-width: 3.2;
}

.prog-arc {
  fill: none;
  stroke: var(--brand-primary);
  stroke-width: 3.2;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.45s var(--ease);
}

.prog-pct-in {
  position: absolute;
  font-size: 8.5px;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.prog-txt {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.prog-txt span {
  color: var(--text-secondary);
  font-weight: 600;
}

.prog-x {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(17, 24, 28, 0.06);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  font-size: 15px;
  line-height: 1;
  flex: none;
  transition: transform 150ms var(--ease), opacity 150ms var(--ease);
}

.prog-x:hover {
  background: rgba(17, 24, 28, 0.12);
  color: var(--text-primary);
}

.prog-x:active {
  transform: scale(0.97);
}

/* ---------- Bottom Sheet Utama (2 Snap: 48% tetap & 90% penuh · GPU 60fps) ---------- */
#bsheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: 520px;
  height: 90dvh;
  transform: translate3d(-50%, var(--sheet-y, 42dvh), 0);
  background: var(--bg-sheet);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -10px 36px -6px rgba(17, 24, 28, 0.11), 0 -2px 8px rgba(17, 24, 28, 0.04);
  z-index: 520;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior-y: contain;
  will-change: transform;
  transition: transform 280ms var(--sheet-ease);
}

.bs-handle-wrap {
  flex: none;
  padding: 10px 0 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
}

.bs-handle-wrap:active {
  cursor: grabbing;
}

.bs-handle {
  width: 38px;
  height: 4.5px;
  border-radius: var(--r-pill);
  background: rgba(17, 24, 28, 0.16);
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

.bs-handle-wrap:hover .bs-handle {
  background: rgba(17, 24, 28, 0.28);
  transform: scaleX(1.15);
}

/* Baris Atas Sheet: Kolom Pencarian + Tombol Tambah Link */
.bs-top-row {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 16px 10px;
}

.bs-search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  background: #f1f5f3;
  border: 1px solid #e2e8f0;
  border-radius: var(--r-pill);
  padding: 0 14px;
  margin: 0;
  color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.bs-search:focus-within {
  background: #ffffff;
  border-color: #166534;
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.12), var(--shadow-xs);
}

.bs-search:focus-within svg {
  color: #166534;
}

.bs-search svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
}

.bs-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: 0;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.bs-search input::placeholder {
  color: var(--text-secondary);
  opacity: 0.78;
  font-weight: 400;
}

.bs-sr-clr {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(17, 24, 28, 0.06);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  font-size: 14px;
  flex: none;
}

.bs-add {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 6px 16px -3px rgba(21, 128, 61, 0.38);
  will-change: transform;
  transition: transform 150ms var(--ease), opacity 150ms var(--ease);
}

.bs-add:hover {
  background: var(--brand-hover);
  transform: translate3d(0, -1px, 0);
  box-shadow: 0 10px 20px -4px rgba(21, 128, 61, 0.44);
}

.bs-add:active {
  transform: scale(0.97);
}

/* Filter Chip Horizontal dengan Jumlah Item */
.fbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 16px 11px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.fbar::-webkit-scrollbar {
  display: none;
}

.fbar-sep {
  width: 1px;
  height: 18px;
  background: var(--border-subtle);
  flex: none;
  margin: 0 2px;
}

.fchip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  white-space: nowrap;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-pill);
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
  will-change: transform;
  transition: transform 150ms var(--ease), opacity 150ms var(--ease);
}

.fchip:hover {
  border-color: rgba(0, 0, 0, 0.12);
}

.fchip:active {
  transform: scale(0.97);
}

.fchip .fc-n {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-sheet);
  padding: 1px 6px;
  border-radius: var(--r-pill);
  font-variant-numeric: tabular-nums;
}

.fchip.on {
  background: var(--brand-tint);
  color: var(--brand-primary);
  border-color: var(--brand-border);
  font-weight: 700;
}

.fchip.on .fc-n {
  background: rgba(21, 128, 61, 0.12);
  color: var(--brand-primary);
}

.fchip.st.on {
  background: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
}

.fchip.st.on .fc-n {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

/* Isi Daftar di dalam Bottom Sheet */
.bs-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 2px 16px calc(26px + env(safe-area-inset-bottom, 0px));
  transition: opacity 180ms var(--ease);
}

/* Kompensasi ruang scroll saat sheet berada di posisi setengah (48dvh) agar item terakhir tetap terjangkau */
#bsheet.snap-mid .bs-body {
  padding-bottom: calc(42dvh + 28px + env(safe-area-inset-bottom, 0px));
}

.bs-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 2px 6px;
}

#cnt {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* Pemisah Kontekstual: DI AREA PETA / DI LUAR PETA / TANPA LOKASI */
.sec-div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 14px 2px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.sec-div:first-child {
  margin-top: 4px;
}

.sec-div-l {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

.sec-dot.in {
  background: var(--brand-primary);
}

.sec-dot.out {
  background: #9BA1A6;
}

.sec-dot.none {
  border: 1.5px solid #9BA1A6;
  background: transparent;
}

.sec-cnt {
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}

/* ---------- Kartu Item Ramping Horizontal (.ic) ---------- */
.ic {
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  min-height: 74px;
  padding: 10px 12px;
  margin-bottom: 8px;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  will-change: transform;
  transition: transform 150ms var(--ease), opacity 150ms var(--ease);
}

.ic:hover {
  border-color: var(--brand-border);
  box-shadow: var(--shadow-sm);
}

.ic:active {
  transform: scale(0.97);
}

.ic.is-highlight {
  background: var(--brand-tint);
  border-color: var(--brand-border);
  box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.14);
  animation: itemHighlight 1.6s var(--ease);
}

@keyframes itemHighlight {
  0% {
    background: #DCFCE7;
    box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.24);
  }
  100% {
    background: var(--brand-tint);
    box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.14);
  }
}

.ic-thumb {
  position: relative;
  width: 78px;
  flex-shrink: 0;
  height: auto;
  min-height: 78px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
}

.ic-thumb .tb {
  width: 78px;
  height: auto;
  min-height: 78px;
  flex: 1 1 auto;
  align-self: stretch;
  object-fit: cover;
  border-radius: 12px;
}

.ic-thumb .tb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.ic-done-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid #FFFFFF;
}

.ic-gem-badge {
  position: absolute;
  left: -3px;
  top: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FEF3C7;
  color: #B45309;
  font-size: 10px;
  display: grid;
  place-items: center;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(17, 24, 28, 0.12);
}

.ic-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.ic-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.014em;
  line-height: 1.32;
}

.ic-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ic-sub {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ic-sub.done {
  color: var(--brand-primary);
  font-weight: 600;
}

.ic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.ic-pin-cta {
  margin: 0 !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  background: var(--brand-tint) !important;
  color: var(--brand-primary) !important;
  border: 1px solid var(--brand-border) !important;
  cursor: pointer;
}

.ic-pin-cta:hover {
  background: #dcfce7 !important;
}

.ic-manual-cta {
  margin: 0 !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  background: #F0FDF4 !important;
  color: #166534 !important;
  border: 1px solid #BBF7D0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer;
}

.ic-manual-cta:hover {
  background: #DCFCE7 !important;
}

.ic[data-loading="1"] {
  border-radius: 16px;
  min-height: 74px;
}

.ic-loading-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-weight: 500;
}

.ic-domain {
  color: var(--text-secondary);
  opacity: 0.85;
  font-size: 12px;
}

@keyframes kolevoPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-green);
  display: inline-block;
  flex: none;
  animation: kolevoPulse 1.4s ease-in-out infinite;
}

.ic-q {
  margin: 0 !important;
  align-self: flex-start;
  font-size: 11px !important;
  padding: 3px 9px !important;
}

.ic-right {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 6px;
  flex: none;
}

.ic-chev {
  color: var(--text-secondary);
  opacity: 0.45;
  flex: none;
  align-self: center;
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

.ic:hover .ic-chev {
  opacity: 0.85;
  transform: translate3d(2px, 0, 0);
}

.ck {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(104, 112, 118, 0.36);
  background: var(--bg-sheet);
  flex: none;
  align-self: center;
  display: grid;
  place-items: center;
  will-change: transform;
  transition: transform 150ms var(--ease), opacity 150ms var(--ease);
}

.ck:hover {
  border-color: var(--brand-primary);
  background: var(--brand-tint);
  transform: scale(1.06);
  box-shadow: 0 0 0 3px var(--brand-tint);
}

.ck:active {
  transform: scale(0.97);
}

/* ---------- Overlay Sheets (Pengingat, Koleksi, Kenangan, Profil) ---------- */
.ov-bg {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 28, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 600;
  overscroll-behavior: contain;
  animation: fadeIn 220ms var(--sheet-ease);
}

.ov-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  max-height: 90dvh;
  background: var(--bg-sheet);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  border-top: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior-y: contain;
  will-change: transform, opacity;
  animation: slideUp 280ms var(--sheet-ease);
}

.ov-head {
  flex: none;
  padding: 10px 18px 12px;
  background: var(--bg-sheet);
  border-bottom: 1px solid var(--border-subtle);
}

.ov-bar {
  width: 38px;
  height: 4.5px;
  border-radius: var(--r-pill);
  background: rgba(17, 24, 28, 0.16);
  margin: 0 auto 10px;
}

.ov-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ov-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.024em;
  color: var(--text-primary);
}

.ov-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(17, 24, 28, 0.06);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  flex: none;
  transition: background-color 0.15s var(--ease), transform 0.15s var(--ease);
}

.ov-close:hover {
  background: rgba(17, 24, 28, 0.11);
}

.ov-close:active {
  transform: scale(0.92);
}

.ov-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding: 14px 18px calc(28px + env(safe-area-inset-bottom, 0px));
}

/* ---------- Quick Filter Chips & Tools di Sheet Koleksi ---------- */
.collection-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.collection-filter-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.filter-chip:active {
  transform: scale(0.96);
}

.filter-chip.active {
  background: #eaf7f0;
  color: #157347;
  border-color: #bfe5cf;
  font-weight: 600;
}

.collection-tools {
  margin-bottom: 12px;
}

.collection-meta-bar {
  margin-top: 8px;
}

/* ---------- Kartu & Baris Koleksi di Switcher ---------- */
.col-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 9px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.col-row-link {
  text-decoration: none;
  min-width: 0;
  color: inherit;
}

.col-info {
  min-width: 0;
}

.col-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-invite-btn {
  flex: none;
  white-space: nowrap;
}

.collection-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.progress-track {
  flex: 1;
  min-width: 48px;
  height: 5px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: #157347;
  transition: width 0.35s var(--ease);
}

.progress-percent {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.col-row:hover {
  border-color: var(--brand-border);
}

.col-row:active {
  transform: scale(0.985);
}

.col-row.on {
  background: var(--brand-tint);
  border-color: var(--brand-border);
}

.col-emo {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--bg-sheet);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex: none;
}

.col-emo-svg {
  color: var(--brand-primary);
}

.col-row.on .col-emo {
  background: #FFFFFF;
}

.col-chk {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
}

/* ---------- Halaman Auth (Clean Light Mode 90–8–2) ---------- */
.auth-wrap {
  max-width: 440px;
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top, 0px)) 18px calc(48px + env(safe-area-inset-bottom, 0px));
}

.brand {
  text-align: center;
  padding: 28px 0 18px;
}

.brand img {
  border-radius: 22px;
  display: block;
  margin: 0 auto 14px;
  box-shadow: var(--shadow);
}

.brand .m {
  margin-top: 4px;
  font-size: 14px;
}

/* ---------- Pemilih Bahasa Ringkas (ID | EN Segmented Pill) ---------- */
.auth-lang-bar {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  right: 16px;
  z-index: 60;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-pill);
  background: var(--bg-sheet);
  border: 1px solid var(--border-subtle);
  flex: none;
}

.lang-pill.glass {
  background: var(--bg-map-overlay);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.lang-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  padding: 0 3px 0 6px;
  flex: none;
}

.lang-opt {
  min-width: 32px;
  min-height: 28px;
  padding: 4px 9px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.12s var(--ease);
}

.lang-opt:active {
  transform: scale(0.95);
}

.lang-opt.on {
  background: var(--brand-primary);
  color: var(--accent-t);
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.24);
}

.lang-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lang-card > .sp > b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.014em;
  margin-bottom: 2px;
}

/* ---------- Tipografi & Tata Letak Umum ---------- */
.m {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.004em;
}

p.m {
  margin: 6px 0;
}

.cap {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}

.pad {
  padding: 36px 20px;
  text-align: center;
}

.t {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin: 0;
}

.t.sm {
  font-size: 21px;
  letter-spacing: -0.024em;
}

.sh {
  font-size: 18.5px;
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.28;
  margin: 0 0 6px;
}

.row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.top-al {
  align-items: flex-start;
}

.sp {
  flex: 1;
  min-width: 0;
}

.between {
  justify-content: space-between;
}

.gap {
  gap: 10px;
}

.gap-xs {
  gap: 6px;
}

.mt {
  margin-top: 14px;
}

/* ---------- Search, Chips, Buttons, Segmented Control ---------- */
.sr {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-pill);
  padding: 0 15px;
  margin: 0 0 12px;
  color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.sr:focus-within {
  border-color: var(--brand-border);
  box-shadow: 0 0 0 3px var(--brand-tint);
}

.sr input {
  border: 0;
  background: none;
  padding: 10px 0;
  width: 100%;
  outline: 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  border-radius: var(--r-pill);
  padding: 7px 14px;
  font-weight: 600;
  background: var(--brand-tint);
  color: var(--brand-primary);
  border: 1px solid var(--brand-border);
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), background-color 0.18s var(--ease);
}

.chip:hover {
  background: var(--soft-hover);
}

.chip:active {
  transform: scale(0.96);
}

.g {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  background: var(--bg-card);
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.15s var(--ease);
}

.g:hover {
  background: var(--brand-tint);
  border-color: var(--brand-border);
  color: var(--brand-primary);
}

.g:active {
  transform: scale(0.96);
}

.rb {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  color: var(--text-primary);
  flex: none;
  transition: transform 0.15s var(--ease), background-color 0.18s var(--ease);
}

.rb:active {
  transform: scale(0.93);
}

.seg {
  display: flex;
  background: var(--bg-sheet);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-pill);
  padding: 3px;
  gap: 3px;
  flex: 1;
}

.seg button {
  flex: 1;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.seg .on {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 700;
  box-shadow: var(--shadow-xs);
}

/* ---------- Kartu Kontainer (.lc) ---------- */
.lc {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  margin-top: 12px;
  box-shadow: var(--shadow-xs);
}

.lc > b:first-child {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.014em;
  margin-bottom: 4px;
}

.lt {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.016em;
  line-height: 1.3;
}

.ico {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #FFFFFF;
  font-size: 22px;
  flex: none;
}

.ico.round {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 20px;
}

.pb {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--brand-tint);
  overflow: hidden;
  margin-top: 6px;
}

.pb i {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--brand-primary);
  transition: width 0.4s var(--ease);
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  padding: 4px 10px;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
  background: var(--brand-tint);
  color: var(--brand-primary);
  font-variant-numeric: tabular-nums;
}

.stats .lc {
  flex: 1;
  margin: 0;
  text-align: center;
  padding: 13px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border-radius: var(--r-md);
}

.stats b {
  font-size: 22px !important;
  font-weight: 800;
  letter-spacing: -0.026em;
  line-height: 1.15;
  margin-bottom: 0 !important;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

/* ---------- Thumbnail, Skeleton Shimmer (GPU) & Fade-In ---------- */
.tb {
  position: relative;
  border-radius: 13px;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 20px;
  box-shadow: var(--shadow-xs);
}

.tb.has-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.36) 50%, transparent 100%);
  transform: translate3d(-100%, 0, 0);
  animation: skelSweep 1.25s ease-in-out infinite;
  pointer-events: none;
}

.tb.has-img.img-ready::before {
  animation: none;
  opacity: 0;
}

.tb img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms var(--ease), opacity 260ms var(--ease);
}

.tb img.fade-img {
  opacity: 0;
}

.tb img.fade-img.loaded {
  opacity: 1;
}

.tb img.fade-img.err {
  display: none;
}

.skel,
.skel-bar,
.skel-line {
  position: relative;
  overflow: hidden;
  background: #E8ECEA;
}

.skel::after,
.skel-bar::after,
.skel-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.65) 50%, transparent 100%);
  transform: translate3d(-100%, 0, 0);
  will-change: transform;
  animation: skelSweep 1.25s ease-in-out infinite;
}

.skel-bar {
  display: inline-block;
  width: 72%;
  height: 14px;
  border-radius: 7px;
  vertical-align: middle;
}

.skel-line {
  display: inline-block;
  width: 52%;
  height: 11px;
  border-radius: 6px;
  vertical-align: middle;
}

.skel-line.short {
  width: 36%;
}

@keyframes skelSweep {
  0% { transform: translate3d(-100%, 0, 0); }
  100% { transform: translate3d(100%, 0, 0); }
}

.c {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  border-radius: var(--r-pill);
  padding: 4px 10px;
  background: var(--bg-sheet);
  color: var(--text-secondary);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.c.ok {
  background: var(--brand-tint);
  color: var(--brand-primary);
  border-color: var(--brand-border);
}

.c.w,
.c.warn {
  background: var(--warnbg);
  color: var(--warn);
}

.act {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.wide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: var(--brand-tint);
  color: var(--brand-primary);
  border: 1px solid var(--brand-border);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  transition: transform 150ms var(--ease), opacity 150ms var(--ease);
}

.wide:hover {
  background: var(--soft-hover);
}

.wide:active {
  transform: scale(0.97);
}

/* ---------- Empty State ---------- */
.empty {
  background: var(--bg-card);
  border: 1px dashed rgba(17, 24, 28, 0.12);
  border-radius: var(--r-lg);
  padding: 28px 20px;
  margin-top: 10px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.empty b {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
}

.empty-ico {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--brand-tint);
  color: var(--brand-primary);
  border: 1px solid var(--brand-border);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.empty-cta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.empty-btn {
  width: auto;
  min-height: 40px;
  margin-top: 0;
  padding: 9px 18px;
  border-radius: var(--r-pill);
}

.clipbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  margin-top: 8px;
  border-radius: var(--r-sm);
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
}

.shimmer {
  animation: pulse 1.1s ease-in-out infinite alternate;
}

@keyframes pulse {
  from { opacity: 0.45; }
  to { opacity: 1; }
}

/* ---------- Kenangan (Polaroid) ---------- */
.mpill {
  margin: 18px auto 12px;
  width: max-content;
  max-width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-pill);
  padding: 7px 18px;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: var(--shadow-xs);
}

.mpill span {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-left: 8px;
}

.pols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
  margin: 12px 0 22px;
}

.pol {
  background: #FFFFFF;
  color: var(--text-primary);
  padding: 9px 9px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  text-align: left;
  box-shadow: 0 10px 24px -6px rgba(17, 24, 28, 0.11), 0 2px 6px rgba(17, 24, 28, 0.04);
  transform: rotate(-1.1deg);
  transition: transform 0.24s var(--spring), box-shadow 0.2s var(--ease);
}

.pol:nth-child(even) {
  transform: rotate(1.1deg);
  margin-top: 12px;
}

.pol:hover {
  transform: rotate(0deg) translate3d(0, -3px, 0) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.pol:active {
  transform: scale(0.97);
}

.pol .tb {
  width: 100% !important;
  height: 132px !important;
  border-radius: 9px;
}

.pol b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 9px;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.22;
}

.pol span {
  font-size: 11.5px;
  color: var(--text-secondary);
  display: block;
  margin-top: 3px;
}

/* ---------- Formulir & Tombol Utama ---------- */
.f {
  width: 100%;
  min-height: 44px;
  background: var(--bg-sheet);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 16px;
  line-height: 1.45;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

textarea.f {
  min-height: 80px;
  resize: vertical;
}

.f:focus {
  border-color: var(--brand-primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--brand-tint);
  outline: none;
}

.f:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 13px 0 5px;
}

label.sr,
label.bs-search {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

label.sr {
  margin-bottom: 12px;
}

label.chk {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  margin: 13px 0;
  cursor: pointer;
}

label.chk input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand-primary);
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  background: var(--brand-primary);
  color: #FFFFFF;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 11px 18px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  margin-top: 9px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 16px -4px rgba(21, 128, 61, 0.34);
  transition: transform 0.15s var(--ease), background-color 0.18s var(--ease), box-shadow 0.2s var(--ease), opacity 0.15s var(--ease);
}

.btn:hover:not(:disabled) {
  background: var(--brand-hover);
  transform: translate3d(0, -1px, 0);
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
  box-shadow: none;
}

.btn:disabled,
.btn.busy {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.spin {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2.2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn.sec {
  background: var(--brand-tint);
  color: var(--brand-primary);
  border-color: var(--brand-border);
  box-shadow: none;
}

.btn.sec:hover:not(:disabled) {
  background: var(--soft-hover);
}

.btn.del {
  background: transparent;
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.2);
  box-shadow: none;
}

.btn.del:hover:not(:disabled) {
  background: var(--danger-bg);
}

.quote {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 18.5px;
  color: var(--text-secondary);
  margin: 12px 0;
  padding: 10px 14px;
  background: var(--bg-sheet);
  border-radius: var(--r-sm);
  line-height: 1.4;
}

.steps {
  padding-left: 20px;
  margin: 8px 0 12px;
  line-height: 1.55;
}

.steps li + li {
  margin-top: 4px;
}

.lkb {
  background: none;
  border: 0;
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 2px 4px;
}

.paywall {
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-top: 12px;
}

.paywall p {
  margin: 6px 0;
}

.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-sheet);
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  padding: 13px 15px;
  margin: 9px 0 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.opt input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand-primary);
  flex-shrink: 0;
}

.opt:has(input:checked) {
  border-color: var(--brand-primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--brand-tint);
}

/* ---------- Stacked Action Bottom Sheet (#sheetbg / #sheet) ---------- */
#sheetbg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 700;
  overscroll-behavior: contain;
  pointer-events: none;
}

#sheetbg.on {
  display: flex;
  pointer-events: auto;
  animation: fadeIn 0.22s var(--sheet-ease);
}

#sheet {
  background: var(--bg-card);
  width: 100%;
  max-width: 520px;
  border-radius: 24px 24px 0 0;
  border-top: 1px solid var(--border-subtle);
  padding: 12px 20px calc(env(safe-area-inset-bottom, 0px) + 20px);
  max-height: 85vh;
  max-height: 85dvh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-lg);
  will-change: transform, opacity;
  transition: transform 0.28s var(--sheet-ease), opacity 0.22s var(--sheet-ease);
  animation: slideUp 0.28s var(--sheet-ease);
}

#sheet::before {
  content: "";
  display: block;
  width: 38px;
  height: 4.5px;
  border-radius: var(--r-pill);
  background: rgba(17, 24, 28, 0.16);
  margin: 0 auto 14px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translate3d(0, 100%, 0); opacity: 0.8; }
  to { transform: translate3d(0, 0, 0); opacity: 1; }
}

/* ---------- Modal Tandai Lokasi & Live Autocomplete ---------- */
.pin-modal {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

.pin-search-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-top: 10px;
}

.pin-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.pin-search-row .pin-q {
  min-width: 0;
  flex: 1;
  width: auto;
  font-size: 16px;
}

.pin-search-row .pin-q::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.pin-clr {
  flex: none;
  flex-shrink: 0;
  min-width: 40px;
  min-height: 44px;
  padding: 0 11px;
  border-radius: var(--r-sm);
}

.pac-list {
  margin-top: 8px;
  padding: 4px 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  max-height: 260px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-padding-top: 4px;
  -webkit-overflow-scrolling: touch;
}

.pac-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex-shrink: 0;
  gap: 2px;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  margin: 0;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.14s var(--ease);
}

.pac-item:last-child {
  border-bottom: 0;
}

.pac-item:hover,
.pac-item:active {
  background: var(--brand-tint);
}

.pac-name {
  display: block;
  width: 100%;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pac-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.35;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pac-state {
  padding: 11px 13px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.pac-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pac-spin {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--brand-primary);
  animation: pacSpin 0.7s linear infinite;
}

@keyframes pacSpin {
  to {
    transform: rotate(360deg);
  }
}

.pin-picked {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  margin: 0 0 8px;
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
  border-radius: var(--r-sm);
  max-width: 100%;
}

.pin-picked b {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.pin-picked span {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.35;
}

#pmap {
  position: relative;
  z-index: 0;
  width: 100%;
  max-width: 100%;
  height: 260px;
  margin: 12px 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #ECEEEF;
  border: 1px solid var(--border-subtle);
}

/* ---------- Floating Toast ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  transform: translate3d(-50%, 14px, 0) scale(0.96);
  background: var(--text-primary);
  color: #FFFFFF;
  padding: 10px 17px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.2s var(--sheet-ease), transform 0.24s var(--sheet-ease);
  pointer-events: none;
  z-index: 800;
  max-width: min(440px, calc(100% - 28px));
  text-align: center;
}

.admin-body #toast {
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

#toast.on {
  opacity: 1;
  transform: translate3d(-50%, 0, 0) scale(1);
  pointer-events: auto;
}

#toast.err {
  background: #991B1B;
}

.toast-act {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  border: 0;
  border-radius: var(--r-pill);
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  will-change: transform;
  transition: transform 150ms var(--ease), opacity 150ms var(--ease);
}

.toast-act:active {
  transform: scale(0.97);
}

.move-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.move-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--r-md);
  background: var(--bg-sheet);
  border: 1px solid var(--border-subtle);
  text-align: left;
  will-change: transform;
  transition: transform 150ms var(--ease), opacity 150ms var(--ease);
}

.move-row:active {
  transform: scale(0.97);
}

.move-row.on {
  background: var(--brand-tint);
  border-color: var(--brand-border);
}

/* ---------- Panel Lokasi Terdekat (Radius 10 km di dalam Sheet) ---------- */
#nearby:not(:empty) {
  margin-bottom: 10px;
}

.nb-status {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 11px 13px;
  margin-bottom: 8px;
}

.nb-status.nb-compact {
  padding: 7px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  line-height: 1.35;
}

.nb-compact-txt {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 4px 2px 8px;
}

.nb-card {
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
  border-radius: var(--r-md);
  padding: 12px 13px;
  margin-bottom: 8px;
}

.nb-col {
  text-decoration: none;
  gap: 10px;
}

.nb-emo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #FFFFFF;
  display: grid;
  place-items: center;
  font-size: 17px;
  flex-shrink: 0;
}

.nb-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.nb-list {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(21, 128, 61, 0.14);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nb-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nb-go {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nb-go b {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.nb-dist {
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--brand-primary);
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  padding: 3px 9px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

/* ---------- Popup Leaflet ---------- */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  box-shadow: var(--shadow-lg) !important;
}

.leaflet-popup-content-wrapper {
  border-radius: var(--r-md) !important;
  border: 1px solid var(--border-subtle);
}

.leaflet-popup-content {
  font: 13px/1.48 "Plus Jakarta Sans", system-ui, sans-serif !important;
  margin: 11px 14px !important;
}

.lc > .row[style*="padding:10px 0"] + .row[style*="padding:10px 0"] {
  border-top: 1px solid var(--border-subtle);
}

.rem-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 13px 14px;
  margin-bottom: 9px;
  box-shadow: var(--shadow-xs);
}

/* ---------- Pusat Notifikasi (Tab Segmented: Aktivitas & Pengingat) ---------- */
.notif-seg {
  margin-top: 12px;
  background: rgba(17, 24, 28, 0.05);
}

.notif-seg button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ntab-cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--brand-tint);
  color: var(--brand-primary);
  border: 1px solid var(--brand-border);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.notif-seg .on .ntab-cnt {
  background: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
}

.act-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 2px 2px 10px;
}

.act-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.act-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 12px 13px;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: transform 150ms var(--ease), border-color 180ms var(--ease), background-color 180ms var(--ease);
}

.act-item:hover {
  border-color: var(--brand-border);
  box-shadow: var(--shadow-sm);
}

.act-item:active {
  transform: scale(0.98);
}

.act-item.is-unread {
  background: #F4FBF7;
  border-color: var(--brand-border);
}

.act-av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  border: 1.5px solid transparent;
}

.act-av.tone-0 { background: #ECFDF5; color: #15803D; border-color: #A7F3D0; }
.act-av.tone-1 { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }
.act-av.tone-2 { background: #FFFBEB; color: #B45309; border-color: #FDE68A; }
.act-av.tone-3 { background: #F5F3FF; color: #6D28D9; border-color: #DDD6FE; }
.act-av.tone-4 { background: #FFF1F2; color: #BE123C; border-color: #FECDD3; }

.act-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.act-line {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--text-secondary);
}

.act-line strong {
  color: var(--text-primary);
  font-weight: 700;
}

.act-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.32;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.act-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.act-col {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--bg-sheet);
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 190px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.act-time {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.act-right {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  align-self: center;
}

.act-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.14);
}

/* ---------- Halaman Administrator (/admin.html) ---------- */
.admin-wrap {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.adm-narrow {
  max-width: 440px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 28px) 18px calc(env(safe-area-inset-bottom, 0px) + 40px);
}

.admin-page {
  max-width: 820px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg-page);
  padding: calc(20px + env(safe-area-inset-top)) 16px calc(104px + env(safe-area-inset-bottom));
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Hero Header (Pengganti Top Bar) */
.admin-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.admin-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(21, 115, 71, 0.14);
}

.admin-hero-info {
  min-width: 0;
  flex: 1;
}

.admin-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-title-row h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.role-pill {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--green-soft);
  color: var(--green-primary);
  border: 1px solid var(--green-border);
}

.admin-email {
  margin: 3px 0 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-updated {
  margin: 1px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: #9ca3af;
}

/* Card Container & Status Grid */
.card-section,
.admin-page .lc {
  background: var(--bg-surface);
  border: 1px solid rgba(17, 24, 39, 0.04);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin: 0 0 16px;
}

.section-label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.status-card {
  min-width: 0;
  background: var(--bg-subtle);
  border-radius: var(--radius-item);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

/* Kartu ganjil terakhir otomatis full-width horizontal */
.status-card:last-child:nth-child(odd) {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
}

.status-title {
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-secondary);
  word-break: break-word;
}

/* Badge Seragam & Anti-Overflow */
.status-badge {
  display: inline-block;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
}

.badge-active {
  background: var(--green-soft);
  color: var(--green-primary);
  border: 1px solid var(--green-border);
}

.badge-warning {
  background: var(--amber-soft);
  color: var(--amber-text);
  border: 1px solid var(--amber-border);
}

/* Konsistensi badge status pada field form di halaman admin */
.admin-body .c {
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  border: 1px solid rgba(17, 24, 39, 0.08);
  white-space: normal;
  word-break: break-word;
}

.admin-body .c.ok {
  background: var(--green-soft);
  color: var(--green-primary);
  border: 1px solid var(--green-border);
}

.admin-body .c.warn {
  background: var(--amber-soft);
  color: var(--amber-text);
  border: 1px solid var(--amber-border);
}

.admin-body .btn {
  min-height: 48px;
  border-radius: var(--radius-item);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.admin-body .btn:active:not(:disabled) {
  transform: scale(0.97);
}

.admin-body .g {
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-item);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, opacity 0.12s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.admin-body .g:active {
  transform: scale(0.97);
}

.adm-wh {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: var(--radius-item);
  background: var(--bg-subtle);
}

.adm-wh-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.adm-wh-code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  border-radius: 10px;
  padding: 9px 10px;
}

.adm-wh-code::-webkit-scrollbar {
  display: none;
}

.adm-wh-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  color: var(--green-primary);
  background: transparent;
  padding: 0;
  white-space: nowrap;
  word-break: normal;
}

.adm-wh-copy {
  flex: none;
}

.adm-mask code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  background: var(--green-soft);
  color: var(--green-primary);
  padding: 3px 8px;
  border-radius: 8px;
  word-break: break-all;
}

.adm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .adm-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.adm-field {
  min-width: 0;
  margin-top: 16px;
}

.adm-grid .adm-field {
  margin-top: 12px;
}

.adm-fh {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  min-width: 0;
}

.adm-fh > div:first-child {
  min-width: 0;
  flex: 1;
}

.adm-fh > .row {
  flex-shrink: 0;
  max-width: 48%;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.adm-lbl {
  display: block;
  margin: 0;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.adm-fh .m {
  font-size: 12.5px;
  margin-top: 2px;
}

.adm-mask {
  margin-top: 6px;
  font-size: 12.5px;
}

.adm-banner {
  margin-top: 10px;
  padding: 12px 15px;
  border-radius: var(--radius-item);
  background: var(--green-soft);
  color: var(--green-primary);
  border: 1px solid var(--green-border);
  font-size: 13px;
  line-height: 1.5;
}

.adm-subhead {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.adm-bind-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.adm-preview {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-item);
  background: var(--green-soft);
  color: var(--green-primary);
  border: 1px solid var(--green-border);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.5;
}

/* Sticky Native Bottom Bar */
.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(17, 24, 39, 0.06);
  z-index: 50;
}

.sticky-footer-in {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-native {
  height: 48px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn-native:active {
  transform: scale(0.97);
}

.btn-native:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  flex: 0 0 auto;
  padding: 0 16px;
  background: var(--green-soft);
  color: var(--green-primary);
  border: 1px solid var(--green-border);
  white-space: nowrap;
}

.btn-primary {
  flex: 1;
  padding: 0 18px;
  background: var(--green-primary);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(21, 115, 71, 0.22);
}

/* ---------- Foto Profil Interaktif & Avatar Foto (Profil, Peta, Aktivitas) ---------- */
.prof-head {
  gap: 14px;
}

.prof-av-btn {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 50%;
  flex: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s var(--ease), opacity 0.16s var(--ease);
}

.prof-av-btn:active {
  transform: scale(0.95);
}

.prof-av-btn.is-busy {
  opacity: 0.65;
  cursor: wait;
}

.prof-av-cam {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-border);
  box-shadow: 0 2px 6px rgba(17, 24, 28, 0.16);
  display: grid;
  place-items: center;
}

.prof-av-acts {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.prof-av-chg,
.prof-av-del {
  font-size: 12.5px;
  padding: 0;
  text-decoration: none;
}

.prof-av-del {
  color: var(--danger, #DC2626);
}

.ico.round.has-img,
.flt-avatar-in.has-img,
.act-av.has-img {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.av-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.av-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ---------- Modal Bagikan 1 Ketukan di iPhone (2 Langkah + Kotak Token + Accordion Manual) ---------- */
.ios-step {
  margin-top: 12px;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--bg-sheet);
  border: 1px solid rgba(17, 24, 28, 0.08);
}

.ios-step > .m {
  margin: 6px 0 0;
}

.ios-step-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ios-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
}

.ios-step-note {
  margin-top: 8px;
  font-size: 12.5px;
}

.ios-install-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.shortcut-connected-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  animation: shortcutBannerIn 0.28s var(--ease, ease) both;
}

@keyframes shortcutBannerIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.shortcut-connected-ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-green);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.shortcut-connected-body {
  min-width: 0;
  flex: 1;
}

.shortcut-connected-title {
  font-size: 14px;
  font-weight: 600;
  color: #065F46;
  line-height: 1.35;
}

.shortcut-connected-sub {
  font-size: 12.5px;
  color: #047857;
  margin-top: 3px;
  line-height: 1.4;
}

.btn-test-shortcut {
  width: 100%;
  height: 44px;
  margin-top: 10px;
  border-radius: 12px;
  background: #F0FDF4;
  color: #166534;
  border: 1px solid #BBF7D0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-test-shortcut:active {
  transform: scale(0.98);
  background: #DCFCE7;
}

.tok-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--r-sm);
  background: var(--brand-tint);
  border: 1px solid var(--brand-border);
}

.tok-box-head {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 6px;
}

.tok-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  background: #FFFFFF;
}

.tok-copy-btn.is-copied {
  background: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
}

.ios-toks {
  margin-top: 14px;
}

.ios-acc {
  margin-top: 16px;
  border-radius: 14px;
  border: 1px solid #E5E7EB;
  background: #F9FAFB;
  overflow: hidden;
}

.ios-acc-sum {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  user-select: none;
}

.ios-acc-sum::-webkit-details-marker {
  display: none;
}

.ios-acc-chev {
  display: inline-block;
  transition: transform 0.2s var(--ease);
}

.ios-acc[open] .ios-acc-chev {
  transform: rotate(180deg);
}

.ios-acc-body {
  padding: 0 14px 12px;
  border-top: 1px solid rgba(17, 24, 28, 0.06);
}

/* ---------- PlaceDetailSheet (Modal/Sheet Independen di atas Bottom Sheet Utama) ---------- */
#sheetbg[data-mode="detail"] {
  z-index: 820;
  background: linear-gradient(to bottom, rgba(17, 24, 28, 0.04) 0%, rgba(17, 24, 28, 0.16) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#sheet[data-mode="detail"] {
  position: relative;
  z-index: 1;
  padding: 0;
  border-radius: 24px 24px 0 0;
  background: #FFFFFF;
  max-height: 68vh;
  max-height: 68dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 36px rgba(17, 24, 28, 0.16), 0 -1px 0 rgba(17, 24, 28, 0.06);
  transition: transform 0.28s var(--sheet-ease), max-height 0.3s var(--sheet-ease), opacity 0.22s var(--sheet-ease);
}

#sheet[data-mode="detail"][data-snap="expanded"] {
  max-height: 90vh;
  max-height: 90dvh;
}

#sheet[data-mode="detail"]::before {
  display: none;
}

.pds-root {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: inherit;
  width: 100%;
}

.pds-drag-zone {
  position: relative;
  z-index: 5;
  flex: none;
  padding: 12px 20px 14px;
  overflow: visible;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  border-bottom: 1px solid rgba(17, 24, 28, 0.05);
}

.pds-drag-zone:active {
  cursor: grabbing;
}

.pds-handle-row {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  overflow: visible;
  margin-bottom: 8px;
}

.pds-handle-hit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 28px;
  touch-action: none;
  cursor: pointer;
}

.pds-handle-bar {
  width: 38px;
  height: 4.5px;
  border-radius: 999px;
  background: rgba(17, 24, 28, 0.18);
  display: block;
}

.pds-close-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(17, 24, 28, 0.07);
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.16s ease, transform 0.16s ease;
}

.pds-close-btn:active {
  background: rgba(17, 24, 28, 0.14);
  transform: translateY(-50%) scale(0.94);
}

.pds-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 14px 20px calc(22px + env(safe-area-inset-bottom, 0px));
}

/* 2. PlaceMediaHeader (96×96 preview + Play overlay + metadata) */
.pds-media-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pds-media-box {
  position: relative;
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(17, 24, 28, 0.08);
}

button.pds-media-box {
  border: 0;
  padding: 0;
  cursor: pointer;
}

.pds-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pds-media-emo {
  font-size: 32px;
  line-height: 1;
}

.pds-play-badge {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.pds-media-info {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 2px;
}

.pds-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: #11181C;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pds-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.38;
  color: #64748B;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pds-status {
  margin-top: 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}

.pds-status.is-done {
  color: #1B6B3A;
}

.pds-status.is-todo {
  color: #6B7280;
  font-weight: 500;
}

.pds-status-chk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 3. TierMetadataBar (FREE vs Premium) */
.pds-tier-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(17, 24, 28, 0.06);
}

.pds-meta-base {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #4B5563;
}

.pds-meta-dist {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #11181C;
}

.pds-dot {
  color: #9CA3AF;
}

.pds-meta-src {
  color: #64748B;
  font-weight: 500;
}

.pds-pro-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: #1B6B3A;
  color: #FFFFFF;
  flex: none;
}

.pds-pro-pill.is-active {
  background: #EBF7EE;
  color: #1B6B3A;
}

.pds-tier-locked {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(27, 107, 58, 0.14);
  background: rgba(235, 247, 238, 0.55);
  cursor: pointer;
  text-align: left;
  transition: background 0.16s ease, transform 0.16s ease;
}

.pds-tier-locked:active {
  background: rgba(235, 247, 238, 0.9);
  transform: scale(0.985);
}

.pds-tier-blur {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
  filter: blur(3px);
  -webkit-filter: blur(3px);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pds-tier-unlocked {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pds-tier-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #11181C;
}

.pds-tier-extra {
  font-size: 12.5px;
  color: #64748B;
  line-height: 1.4;
}

/* 4. PhotoGalleryStrip & Fullscreen Lightbox */
.pds-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.pds-photo-card {
  position: relative;
  border: none;
  padding: 0;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #F3F4F6;
  cursor: pointer;
  display: block;
}

.pds-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.pds-photo-card:active .pds-photo-img {
  transform: scale(0.97);
}

.pds-photo-more {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 28, 0.56);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pds-lightbox {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(10, 14, 18, 0.94);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px));
  animation: fadeIn 0.18s ease;
}

.pds-lb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FFFFFF;
}

.pds-lb-count {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.pds-lb-close {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pds-lb-stage {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin: 12px 0;
}

.pds-lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.pds-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pds-lb-nav.prev { left: 4px; }
.pds-lb-nav.next { right: 4px; }

.pds-lb-cap {
  margin: 0;
  text-align: center;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.86);
}

/* Modal Pratinjau Video Embed (Centered Fullscreen Overlay 9:16 + Clip Instagram + Footer Pill Kolevo) */
html.video-modal-open,
body.video-modal-open {
  background-color: #111113;
  overflow: hidden;
}

.pds-video-modal {
  position: fixed;
  inset: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(20px + env(safe-area-inset-bottom, 0px));
  animation: fadeIn 0.18s ease;
}

.pds-video-dialog {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 400px;
  max-height: 100%;
  pointer-events: none;
}

.pds-video-frame-wrap {
  width: min(88vw, 360px, calc(74vh * 9 / 16));
  width: min(88vw, 360px, calc(min(74dvh, 100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 104px) * 9 / 16));
  aspect-ratio: 9 / 16;
  max-height: 74vh;
  max-height: min(74dvh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 104px));
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  background: #000;
  background-color: #000;
  line-height: 0;
  font-size: 0;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}

.pds-video-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  pointer-events: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.pds-video-spinner {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.pds-video-frame-wrap.is-loaded .pds-video-spinner {
  opacity: 0;
  visibility: hidden;
}

.pds-video-spin-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #22C55E;
  animation: pdsVideoSpin 0.8s linear infinite;
}

@keyframes pdsVideoSpin {
  to {
    transform: rotate(360deg);
  }
}

.pds-video-iframe {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

/* Potong garis putih bawaan di pinggir/bawah iframe embed TikTok v2 */
.tiktok-embed-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  transform: scale(1.05);
  transform-origin: top center;
}

.ig-embed-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  transform: scale(1.45) translateY(-56px);
  transform-origin: top center;
}

.pds-video-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 24px 16px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.pds-video-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 9999px;
  background: var(--brand-primary, #15803D);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(21, 128, 61, 0.35);
  pointer-events: auto;
  transition: transform 140ms ease, background 140ms ease;
}

.pds-video-open-btn:hover {
  background: #166534;
}

.pds-video-open-btn:active {
  transform: scale(0.97);
}

.pds-video-dismiss-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 140ms ease, background 140ms ease;
}

.pds-video-dismiss-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

.pds-video-dismiss-btn:active {
  transform: scale(0.97);
}

.pds-quote {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #4B5563;
  font-style: italic;
}

.pds-note {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #374151;
}

/* 5. PlaceActionSection (2-Col CTAs + iOS Grouped Menu + Edit) */
.pds-actions {
  margin-top: 16px;
}

.pds-cta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pds-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 12px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.pds-cta:active {
  transform: scale(0.975);
}

.pds-cta-forest {
  background: #1B6B3A;
  color: #FFFFFF;
}

.pds-cta-mint {
  background: #EBF7EE;
  color: #1B6B3A;
}

.pds-cta.is-dimmed {
  opacity: 0.58;
}

.pds-cta.is-disabled {
  opacity: 0.45;
  cursor: default;
}

.pds-menu {
  margin-top: 14px;
  background: rgba(245, 245, 244, 0.85);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 28, 0.05);
}

.pds-menu-row {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: #11181C;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease;
}

.pds-menu-row + .pds-menu-row {
  border-top: 1px solid rgba(17, 24, 28, 0.06);
}

.pds-menu-row:active {
  background: rgba(17, 24, 28, 0.05);
}

.pds-menu-row.is-highlight-row {
  background: rgba(235, 247, 238, 0.85);
  color: #1B6B3A;
}

.pds-menu-row.is-highlight-row .pds-menu-ico {
  color: #1B6B3A;
}

.pds-menu-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4B5563;
  flex: none;
}

.pds-menu-lbl {
  flex: 1 1 auto;
  min-width: 0;
}

.pds-menu-hint {
  font-size: 11.5px;
  font-weight: 700;
  color: #1B6B3A;
  background: #FFFFFF;
  padding: 2px 8px;
  border-radius: 999px;
  flex: none;
}

.pds-menu-chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  flex: none;
}

.pds-edit-btn {
  width: 100%;
  margin-top: 12px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s ease, transform 0.14s ease;
}

.pds-edit-btn:active {
  background: #F9FAFB;
  transform: scale(0.985);
}

/* ==========================================================================
   3 Pilar Upgrade Kolevo — Native Minimalist UI
   ========================================================================== */

/* 1. Custom Leaflet Marker Cluster (Kolevo Green) */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background-color: rgba(22, 128, 60, 0.22) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background-color: var(--primary-green, #16803C) !important;
  color: #FFFFFF !important;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700 !important;
  font-size: 13px !important;
  width: 34px !important;
  height: 34px !important;
  margin: 0 !important;
  border: 2px solid #FFFFFF !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.marker-cluster-small span,
.marker-cluster-medium span,
.marker-cluster-large span {
  line-height: 1 !important;
}

/* 2. Pin "Sudah Dikunjungi" (micro-badge centang putih; warna dot dikonsolidasi di atas) */
.pin.d .pin-chk {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-green, #16803C);
  color: #FFFFFF;
  border: 1.5px solid #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}

/* 3. Detail Bottom Sheet: Badge Acak, Action Row (Sudah dikunjungi + Rute), Personal Note */
.pds-random-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #ECFDF5;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
}

.pds-quick-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pds-visited-pill {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: #F3F4F6;
  color: #374151;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.14s ease;
}

.pds-visited-pill:active {
  transform: scale(0.97);
}

.pds-visited-pill .pds-visited-ico {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(55, 65, 81, 0.1);
  transition: background 0.2s ease, color 0.2s ease;
}

.pds-visited-pill.is-active {
  background: #DCFCE7;
  color: #166534;
}

.pds-visited-pill.is-active .pds-visited-ico {
  background: #166534;
  color: #FFFFFF;
}

.pds-route-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--primary-green, #15803D);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.14s ease;
}

.pds-route-btn:hover {
  background: var(--brand-hover, #166534);
}

.pds-route-btn:active {
  transform: scale(0.97);
}

.pds-note-wrap {
  margin-bottom: 12px;
}

.pds-note-input {
  width: 100%;
  box-sizing: border-box;
  background: #F9FAFB;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary, #11181C);
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.pds-note-input::placeholder {
  color: #9CA3AF;
}

.pds-note-input:focus {
  border-color: var(--primary-green, #15803D);
  background: #FFFFFF;
}

/* 4. Fallback Thumbnail Card (Anti Broken Image) */
.tb,
.pds-media-box,
.pds-photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.tb .thumb-fb-ico,
.pds-media-box .thumb-fb-ico,
.pds-photo-card .thumb-fb-ico {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #166534;
  opacity: 0.6;
}

.thumb-fallback {
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5) !important;
}

.thumb-fallback .thumb-fb-ico {
  display: inline-flex;
}

/* 5. Filter "Terdekat", Tombol Dadu (Pilih Acak), & Badge Jarak Kartu */
.fchip-near {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.fchip-near .fchip-ico {
  flex: none;
}

.fchip-dice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  min-width: 34px;
}

.ic-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.ic-head-row .ic-title {
  flex: 1 1 auto;
  min-width: 0;
}

.ic-dist {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  color: #166534;
  background: #ECFDF5;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

/* 6. Share Koleksi Publik & Rute Picker */
.bs-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
}

.pub-toggle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #F9FAFB;
  border: 1px solid var(--border-subtle);
}

.pub-switch {
  flex: none;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  padding: 3px;
  background: #D1D5DB;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s ease;
}

.pub-switch.is-on {
  background: var(--primary-green, #15803D);
}

.pub-switch-knob {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
  transform: translateX(0);
  transition: transform 0.2s ease;
}

.pub-switch.is-on .pub-switch-knob {
  transform: translateX(20px);
}

.pub-link-box {
  margin-top: 12px;
}

.pub-link-inp {
  font-size: 13px;
  color: var(--text-secondary);
}

.pub-share-acts,
.route-opts {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.pub-share-acts > *,
.route-opts > * {
  flex: 1 1 0;
  text-align: center;
}

/* 7. Tampilan Koleksi Publik (/c/:slug) */
.pub-head {
  padding: 15px 16px 10px;
}

.pub-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.pub-owner {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 2px 0 0;
  font-size: 12.5px;
}

.pub-ro {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  background: #F3F4F6;
  color: #4B5563;
  font-weight: 600;
  font-size: 11px;
}

.pub-cta-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 16px calc(env(safe-area-inset-bottom, 0px) + 12px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.pub-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  border-radius: 14px;
  font-weight: 600;
  background: var(--primary-green, #16803C);
  color: #FFFFFF;
  text-align: center;
  text-decoration: none;
  margin: 0;
  transition: transform 0.14s ease, opacity 0.14s ease;
}

/* 8. Native Duplicate Confirmation Toast */
.dup-toast {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(440px, calc(100% - 24px));
  z-index: 960;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translate3d(-50%, 120%, 0);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s var(--sheet-ease), opacity 0.22s ease;
}

.dup-toast.on {
  transform: translate3d(-50%, 0, 0);
  opacity: 1;
  pointer-events: auto;
}

.dup-toast-in {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.dup-toast-msg {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #11181C);
  line-height: 1.4;
}

.dup-toast-acts {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.dup-btn-cancel,
.dup-btn-ok {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.dup-btn-cancel {
  background: #F3F4F6;
  color: #374151;
}

.dup-btn-ok {
  background: var(--primary-green, #15803D);
  color: #FFFFFF;
}

/* ---------- Keamanan, Clone CTA, Smart Install Banner, Quick Search & Action Sheet ---------- */

/* 1. Quick Search Bar (Expandable di Bottom Sheet) */
.bs-search.qs-pill {
  height: 38px;
  border-radius: 999px;
  background: #f1f5f3;
  padding: 0 14px;
  font-size: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bs-search.qs-pill:focus-within,
.bs-search.qs-pill.is-open {
  background: #ffffff;
  border-color: #166534;
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.12);
}

.bs-ico-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  color: var(--text-secondary, #4B5563);
  transition: background 0.16s ease, color 0.16s ease;
}

.bs-ico-btn:hover,
.bs-ico-btn.is-on {
  background: rgba(22, 128, 60, 0.08);
  color: var(--primary-green, #16803C);
}

/* 2. Smart Install Banner (Khusus Browser Non-PWA) */
.install-banner {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 76px);
  left: 16px;
  right: 16px;
  max-width: 440px;
  margin: 0 auto;
  z-index: 880;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.install-banner[hidden] {
  display: none !important;
}

.ib-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ib-ico {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.ib-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ib-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary, #11181C);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ib-desc {
  font-size: 12px;
  color: var(--text-secondary, #6B7280);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ib-acts {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ib-btn {
  border: 0;
  border-radius: 999px;
  background: var(--primary-green, #16803C);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.14s ease, opacity 0.14s ease;
}

.ib-btn:active {
  transform: scale(0.97);
}

.ib-close {
  border: 0;
  background: rgba(17, 24, 28, 0.06);
  color: var(--text-secondary, #6B7280);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.ios-install-steps {
  list-style: none;
  margin: 14px 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ios-install-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #F9FAFB;
  border: 1px solid #F3F4F6;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-primary, #11181C);
}

.ios-step-ico {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(22, 128, 60, 0.1);
  color: var(--primary-green, #16803C);
  display: grid;
  place-items: center;
}

/* 3. Sticky Clone CTA di Halaman Publik (/c/:slug) */
/* .pub-cta-bar & .pub-cta-btn dikonsolidasi di blok koleksi publik utama */

.pub-cta-btn:active {
  transform: scale(0.98);
}

.pub-cta-btn:disabled {
  opacity: 0.78;
  cursor: wait;
}

.btn-spin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  animation: kolevo-spin 0.7s linear infinite;
}

@keyframes kolevo-spin {
  to { transform: rotate(360deg); }
}

/* 4. Action Sheet Menu ••• (iOS-style Bottom Action Sheet) */
.ios-act-sheet {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.ios-act-head {
  margin-bottom: 12px;
}

.ios-act-head .sh {
  margin-bottom: 2px;
}

.ios-act-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary, #6B7280);
  margin: 4px 0 6px;
}

.ios-act-list {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid #F3F4F6;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
}

.ios-act-item {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid #F3F4F6;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  color: var(--text-primary, #11181C);
  transition: background 0.14s ease;
}

.ios-act-item:last-child {
  border-bottom: 0;
}

.ios-act-item:active,
.ios-act-item:hover {
  background: #F9FAFB;
}

.ios-act-ico {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #F3F4F6;
  color: var(--primary-green, #16803C);
  display: grid;
  place-items: center;
}

.ios-act-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ios-act-txt b {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
}

.ios-act-txt small {
  font-size: 12px;
  color: var(--text-secondary, #6B7280);
  line-height: 1.25;
}

.ios-act-cancel {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
}

/* ---------- PWA Native App Polish, Paywall PRO Sheet & Feedback Sheet ---------- */

/* 1. Native Bottom Sheet Base (.native-sheet; #sheetbg/#sheet dikonsolidasi di definisi utama) */
.native-sheet {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ns-handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #E5E7EB;
  margin: 0 auto 16px;
}

/* 2. Segmented Pills (Kategori Feedback) */
.seg-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.seg-pill {
  background: #F3F4F6;
  color: #4B5563;
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.14s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.seg-pill:active {
  transform: scale(0.98);
}

.seg-pill.is-active {
  background: #DCFCE7;
  color: #166534;
  border: 1.5px solid var(--primary-green, #16803C);
  font-weight: 600;
}

/* 3. Badge "PRO" Mini */
.pro-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #16A34A, #15803D);
  color: #FFFFFF;
  line-height: 1.3;
  vertical-align: middle;
}

.prof-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ios-act-title-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 4. Textarea & Primary CTA Button */
.fb-textarea {
  width: 100%;
  min-height: 110px;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.45;
  padding: 12px 14px;
  border-radius: 14px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  color: var(--text-primary, #11181C);
  resize: none;
  box-sizing: border-box;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.fb-textarea:focus {
  border-color: var(--primary-green, #16803C);
  background: #FFFFFF;
  outline: none;
}

.ns-cta-btn {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--primary-green, #16803C);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.ns-cta-btn:active {
  transform: scale(0.98);
}

.ns-cta-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

/* Paywall Bottom Sheet */
.pw-head {
  text-align: center;
  margin-bottom: 16px;
}

.pw-head .sh {
  margin: 8px 0 4px;
}

.pw-feats {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pw-feats li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-primary, #11181C);
}

.pw-chk {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #166534;
  display: grid;
  place-items: center;
}

/* Baris menu Lapor Bug / Saran di Halaman Pengaturan */
.fb-menu-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease;
}

.fb-menu-row:active {
  transform: scale(0.98);
}

.fb-menu-ico {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(22, 128, 60, 0.1);
  color: var(--primary-green, #16803C);
  display: grid;
  place-items: center;
}

.fb-menu-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ---------- Soft Prompt Izin Lokasi Bergaya Kolevo ---------- */
#sheetbg[data-mode="geo-prompt"] #sheet {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: 24px 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 -14px 40px -10px rgba(17, 24, 28, 0.16);
}

.geo-prompt-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 6px 6px;
  gap: 10px;
}

.geo-prompt-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--brand-tint, #ECFDF5);
  border: 1px solid var(--brand-border, #A7F3D0);
  color: var(--brand-primary, #15803D);
  display: grid;
  place-items: center;
  margin-bottom: 2px;
}

.geo-prompt-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary, #11181C);
}

.geo-prompt-desc {
  margin: 0;
  max-width: 310px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary, #687076);
}

.geo-prompt-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
}

.geo-prompt-allow {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  background: var(--brand-primary, #15803D);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
}

.geo-prompt-allow:hover {
  background: var(--brand-hover, #166534);
}

.geo-prompt-later {
  width: 100%;
  min-height: 42px;
  border-radius: 14px;
  background: transparent;
  color: var(--text-secondary, #687076);
  font-weight: 500;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
}

.geo-prompt-later:hover {
  background: rgba(17, 24, 28, 0.04);
  color: var(--text-primary, #11181C);
}

/* Badge indikator proses lokasi pada kartu loading */
.ic-loading-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #F0FDF4;
  color: #166534;
  border: 1px solid #BBF7D0;
  font-size: 11.5px;
  font-weight: 600;
}

/* ---------- KolevoSelect: Custom Dropdown Reusable Bergaya Kolevo ---------- */
.ksel {
  position: relative;
  width: 100%;
}

.ksel-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  text-align: left;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.ksel-trigger:hover {
  border-color: rgba(17, 24, 28, 0.14);
}

.ksel.is-open .ksel-trigger,
.ksel-trigger:focus-visible {
  border-color: var(--brand-primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--brand-tint);
  outline: none;
}

.ksel-value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ksel-chev {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: transform 0.2s var(--ease), color 0.18s var(--ease);
}

.ksel.is-open .ksel-chev {
  transform: rotate(180deg);
  color: var(--brand-primary);
}

.ksel-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 950;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(17, 24, 28, 0.08);
  border-radius: 16px;
  box-shadow: 0 14px 36px -6px rgba(17, 24, 28, 0.16), 0 4px 12px -2px rgba(17, 24, 28, 0.06);
  padding: 6px;
  max-height: min(260px, 42dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.16s var(--ease), transform 0.18s var(--ease), visibility 0.18s var(--ease);
}

.ksel-menu.is-up {
  top: auto;
  bottom: calc(100% + 6px);
  transform: translateY(6px) scale(0.98);
  transform-origin: bottom center;
}

.ksel-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ksel-opt {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  margin: 0;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.14s var(--ease), color 0.14s var(--ease), transform 0.12s var(--ease);
}

.ksel-opt + .ksel-opt {
  margin-top: 2px;
}

.ksel-opt:hover,
.ksel-opt:focus-visible {
  background: var(--bg-sheet);
  outline: none;
}

.ksel-opt:active {
  transform: scale(0.99);
}

.ksel-opt.is-active {
  background: var(--brand-tint);
  color: var(--brand-hover);
  font-weight: 700;
}

.ksel-opt.is-active:hover,
.ksel-opt.is-active:focus-visible {
  background: var(--soft-hover);
}

.ksel-opt-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ksel-opt-chk {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.14s var(--ease), transform 0.16s var(--ease);
}

.ksel-opt.is-active .ksel-opt-chk {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Kartu Profil: Koleksi & Anggota + Tumpukan Avatar Mini ---------- */
.prof-col-row {
  padding: 11px 0;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.prof-col-row:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}
.prof-col-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}
.prof-col-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.prof-col-acts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.prof-inv-btn {
  border-color: var(--brand-border);
  color: var(--brand-primary);
  background: var(--brand-soft, #ECFDF5);
}

.av-stack {
  display: inline-flex;
  align-items: center;
}
.av-stack-item,
.av-stack-more {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  background: #ECFDF5;
  color: #15803D;
  border: 2px solid var(--bg-card, #fff);
  margin-left: -6px;
  position: relative;
  overflow: hidden;
  flex: none;
}
.av-stack-item:first-child {
  margin-left: 0;
}
.av-stack-item.has-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.av-stack-more {
  background: var(--bg-subtle, #F1F5F9);
  color: var(--text-secondary);
  font-size: 9.5px;
}

/* ---------- Bottom Sheet "Kelola Kolaborasi" ---------- */
.collab-sheet {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.collab-col-sub {
  margin: -6px 0 0;
}
.collab-sec {
  background: var(--bg-subtle, #F8FAFC);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 13px 14px;
}
.collab-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.collab-quota {
  margin: 0 0 10px;
  font-size: 12px;
}
.collab-inv-box {
  margin-top: 10px;
}
.collab-inv-acts {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.collab-inv-acts .btn {
  flex: 1;
  margin-top: 0;
}
.collab-mem-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.collab-mem-wrap {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}
.collab-mem-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
}
.collab-mem-row.is-tappable {
  cursor: pointer;
  transition: background-color 140ms var(--ease);
}
.collab-mem-row.is-tappable:hover {
  background: #F4FBF7;
}
.collab-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: #ECFDF5;
  color: #15803D;
  border: 1px solid #A7F3D0;
  position: relative;
  overflow: hidden;
  flex: none;
}
.collab-av.has-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.collab-mem-info {
  min-width: 0;
}
.collab-mem-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.collab-mem-email {
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.collab-role-badge {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--bg-subtle, #F1F5F9);
  color: var(--text-secondary);
}
.collab-role-badge.is-owner {
  background: #DCFCE7;
  color: #166534;
}
.collab-role-badge.is-editor {
  background: #EFF6FF;
  color: #1D4ED8;
}
.collab-mem-panel {
  border-top: 1px solid var(--border-subtle);
  padding: 10px 11px;
  background: #FAFCFB;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.collab-mem-roles {
  display: flex;
  gap: 8px;
}
.collab-mem-roles .g {
  flex: 1;
  justify-content: center;
}
.collab-rm-btn {
  margin-top: 0;
  padding: 9px 12px;
  font-size: 13px;
}
.collab-toggle-row {
  padding: 8px 0;
  margin: 0;
  border-bottom: 1px solid var(--border-subtle);
}
.collab-toggle-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* ---------- Detail Tempat: Badge Ditambahkan Oleh, Vote Pill, & Mini-Thread Catatan ---------- */
.pds-added-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  background: var(--bg-subtle, #F1F5F9);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  width: fit-content;
  margin-bottom: 6px;
}
.pds-added-av {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 700;
  background: #DCFCE7;
  color: #166534;
  position: relative;
  overflow: hidden;
  flex: none;
}
.pds-added-av.has-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pds-vote-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card, #fff);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease), transform 120ms var(--ease);
}
.pds-vote-pill:active {
  transform: scale(0.97);
}
.pds-vote-pill.is-active {
  background: #DCFCE7;
  border-color: #22C55E;
  color: #15803D;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.18);
}

.pds-cn-sec {
  margin: 12px 0;
  padding: 12px;
  border-radius: 16px;
  background: var(--bg-subtle, #F8FAFC);
  border: 1px solid var(--border-subtle);
}
.pds-cn-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.pds-cn-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}
.pds-cn-count {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg-card, #fff);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.pds-cn-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 10px;
}
.pds-cn-empty {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 2px;
}
.pds-cn-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 8px 10px;
}
.pds-cn-av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: #ECFDF5;
  color: #15803D;
  position: relative;
  overflow: hidden;
  flex: none;
  margin-top: 1px;
}
.pds-cn-av.has-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pds-cn-body {
  flex: 1;
  min-width: 0;
}
.pds-cn-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.pds-cn-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}
.pds-cn-time {
  font-size: 11px;
  color: var(--text-secondary);
}
.pds-cn-text {
  font-size: 13px;
  line-height: 1.38;
  color: var(--text-primary);
  word-break: break-word;
}
.pds-cn-form {
  display: flex;
  gap: 6px;
  align-items: center;
}
.pds-cn-input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card, #fff);
  color: var(--text-primary);
  font-size: 13px;
}
.pds-cn-send {
  flex: none;
  padding: 9px 14px;
  border-radius: 12px;
  border: 0;
  background: var(--brand-primary, #1B4332);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Revive Features: Smart Area Banner & Weekend Randomizer ---------- */
button.nb-status {
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  justify-content: space-between;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

.nb-status.nb-smart {
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
  border: 1px solid #BBF7D0;
  border-radius: 14px;
  padding: 10px 13px;
  color: #14532D;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.06);
}

.nb-status.nb-smart:hover {
  background: linear-gradient(135deg, #DCFCE7 0%, #ECFDF5 100%);
  border-color: #86EFAC;
}

.nb-status.nb-smart:active,
.nb-status.nb-compact.nb-clickable:active {
  transform: scale(0.99);
}

.nb-smart-txt {
  flex: 1 1 auto;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nb-smart-chev {
  flex: none;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  opacity: 0.65;
  margin-left: 4px;
}

.nb-status.nb-compact.nb-clickable:hover {
  background: #F9FAFB;
  border-color: #D1D5DB;
}

/* Modal Weekend Randomizer (#sheetbg[data-mode="randomizer"]) */
#sheetbg[data-mode="randomizer"] #sheet {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: 24px 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 -14px 40px -10px rgba(17, 24, 28, 0.18);
}

.rand-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 6px 2px 4px;
}

.rand-badge {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #166534;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.rand-badge.is-shuffling {
  animation: randPulse 0.28s ease-in-out infinite alternate;
}

.rand-place {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border-radius: 16px;
  background: #F9FAFB;
  border: 1px solid var(--border-subtle, #E5E7EB);
}

.rand-place.is-shuffling {
  animation: randShuffleTick 0.14s ease;
}

.rand-place.is-settled {
  background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 100%);
  border-color: #BBF7D0;
  animation: randSettlePop 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.rand-thumb {
  flex: none;
  width: 80px;
  height: 80px;
  border-radius: 14px;
  overflow: hidden;
}

.rand-thumb .tb {
  width: 80px;
  height: 80px;
  border-radius: 14px;
}

.rand-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rand-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text-primary, #11181C);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rand-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-secondary, #687076);
}

.rand-dist {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #166534;
  background: #ECFDF5;
  padding: 2px 8px;
  border-radius: 999px;
}

.rand-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 2px;
}

.rand-btn-primary {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  background: #1B4332;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
}

.rand-btn-primary:hover {
  background: #143627;
}

.rand-btn-outline {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  background: #FFFFFF;
  color: #166534;
  font-weight: 600;
  font-size: 14.5px;
  border: 1.5px solid #15803D;
  cursor: pointer;
}

.rand-btn-outline:hover {
  background: #F0FDF4;
}

.rand-btn-close {
  width: 100%;
  min-height: 40px;
  border-radius: 12px;
  background: transparent;
  color: var(--text-secondary, #687076);
  font-weight: 500;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
}

.rand-btn-close:hover {
  background: rgba(17, 24, 28, 0.04);
  color: var(--text-primary, #11181C);
}

@keyframes randShuffleTick {
  0% { opacity: 0.72; transform: translateY(3px) scale(0.99); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes randSettlePop {
  0% { transform: scale(0.97); }
  60% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

@keyframes randPulse {
  from { opacity: 0.85; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1.02); }
}

/* ---------- Fase 2: Peta Publik (/p/:slug) & Rute Multi-Stop ---------- */
/* .pub-owner dikonsolidasi di blok koleksi publik utama */

.pub-owner-av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ECFDF5;
  color: #166534;
  border: 1px solid #BBF7D0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  flex: none;
}

.pub-owner-av.has-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* .pub-cta-bar dikonsolidasi di blok koleksi publik utama */

.pub-create-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 12px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.16s ease;
}

.pub-create-link:hover {
  background: #DCFCE7;
}

.pub-more-card {
  margin-bottom: 12px;
}

.pub-toggle-inline {
  margin-top: 0;
}

/* Bar Kontrol Rute Multi-Stop di atas bottom sheet */
.route-bar {
  margin: 0 14px 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
  border: 1px solid #BBF7D0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.route-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.route-bar-title {
  font-size: 13px;
  font-weight: 700;
  color: #14532D;
}

.route-bar-cancel {
  border: 0;
  background: transparent;
  color: var(--text-secondary, #687076);
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.route-bar-cancel:hover {
  background: rgba(17, 24, 28, 0.06);
  color: var(--text-primary, #11181C);
}

.route-bar-acts {
  display: flex;
  gap: 8px;
}

.route-bar-btn {
  flex: 1 1 0;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.route-bar-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.route-bar-auto {
  background: #FFFFFF;
  color: #166534;
  border: 1.5px solid #15803D;
}

.route-bar-auto:not(:disabled):hover {
  background: #F0FDF4;
}

.route-bar-go {
  background: #1B4332;
  color: #FFFFFF;
  border: none;
}

.route-bar-go:not(:disabled):hover {
  background: #143627;
}

/* Kartu & Pin Mode Rute Multi-Stop */
.ic.is-route-selected {
  background: #F0FDF4;
  border-color: #86EFAC;
}

.ic.is-route-disabled {
  opacity: 0.48;
}

.route-num-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1B4332;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(27, 67, 50, 0.28);
  flex: none;
}

.route-pick-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #BBF7D0;
  background: #FFFFFF;
  display: inline-block;
  flex: none;
}

.pin.is-route-pin .pin-route-dot {
  background: #1B4332;
  border-color: #FFFFFF;
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(27, 67, 50, 0.4);
}

.pin-route-num {
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  color: #FFFFFF;
}

/* ---------- Fase 3: Modal Impor dari Google Maps ---------- */
.imp-modal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.imp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.imp-head .sh {
  margin: 0;
}

.imp-close-x {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.imp-tabs {
  margin: 0;
}

.imp-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.imp-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
  padding: 20px 14px;
  border-radius: 16px;
  border: 1.5px dashed #86EFAC;
  background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 100%);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.imp-dropzone:hover {
  background: #ECFDF5;
  border-color: #15803D;
}

.imp-drop-ico {
  font-size: 26px;
  line-height: 1;
}

.imp-drop-title {
  font-size: 14px;
  color: #14532D;
}

.imp-drop-desc {
  font-size: 12px;
}

.imp-guide {
  border: 1px solid var(--border-subtle, #E5E7EB);
  border-radius: 12px;
  padding: 9px 12px;
  background: #F9FAFB;
  font-size: 12.5px;
  color: var(--text-secondary, #687076);
}

.imp-guide summary {
  font-weight: 600;
  color: var(--text-primary, #11181C);
  cursor: pointer;
}

.imp-guide-steps {
  margin: 8px 0 2px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1.45;
}

.imp-ta-lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #11181C);
}

.imp-ta {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.45;
}

.imp-paste-meta {
  min-height: 18px;
}

.imp-detected {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ECFDF5;
  border: 1px solid #BBF7D0;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
}

.imp-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle, #E5E7EB);
}

.imp-prev-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}

.imp-inv {
  font-size: 11.5px;
}

.imp-prev-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.imp-prev-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #F9FAFB;
  border: 1px solid var(--border-subtle, #E5E7EB);
  font-size: 12.5px;
}

.imp-prev-name {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.imp-prev-more {
  font-size: 12px;
  font-weight: 600;
  color: #166534;
  padding: 2px 4px;
}

.imp-batch-note {
  padding: 8px 11px;
  border-radius: 10px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
  font-size: 12px;
  line-height: 1.4;
}

.imp-col-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.imp-col-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary, #687076);
}

.imp-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.imp-progress-bar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #E5E7EB;
  overflow: hidden;
}

.imp-progress-bar span {
  display: block;
  height: 100%;
  background: #1B4332;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.imp-submit-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  background: #1B4332;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.imp-submit-btn:hover:not(:disabled) {
  background: #143627;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
