/* Digital Aset Mapping — dipakai bersama oleh aplikasi dan file HTML ekspor. */
.sp-export, .sp-export body { margin: 0; height: 100%; }
html:has(.sp-export), .sp-export { height: 100%; }
.sp-root {
  --sp-bg: #f2f5f9;
  --sp-surface: #ffffff;
  --sp-fg: #172b43;
  --sp-mut: #596b80;
  --sp-line: #e0e7ef;
  --sp-line-strong: #bdcad9;
  --sp-acc: #215bdb;
  --sp-acc-dark: #1949b5;
  --sp-acc-weak: #eff6ff;
  --sp-radius: 8px;
  --sp-radius-lg: 12px;
  --sp-shadow: 0 16px 38px -18px rgba(15, 23, 42, .32);
  --sp-dot-size: 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px;
  background: var(--sp-bg);
  color: var(--sp-fg);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  position: relative;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
.sp-export .sp-root, .sp-root.sp-fullpage { height: 100vh; height: 100dvh; }
.sp-root *, .sp-root *::before, .sp-root *::after { box-sizing: border-box; }
.sp-root [hidden] { display: none !important; }
.sp-grow { flex: 1; }
.sp-mut { color: var(--sp-mut); font-size: 12.5px; }
.sp-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- header ---------- */
 .sp-top {
  display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 0 20px;
  background: #11243a; color: #fff; border-bottom: 1px solid #243950; flex: none; z-index: 1100;
}
.sp-heading { min-width: 0; flex: 1; }
.sp-brand-name { display: block; color: #b2c5dd; font-size: 10px; font-weight: 500; letter-spacing: .03em; margin-bottom: 3px; }
.sp-brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: #2c65e5; color: #fff !important; flex: none; text-decoration: none; }
.sp-brand-mark svg { width: 20px; height: 20px; }
.sp-title { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-tools { display: flex; gap: 10px; align-items: center; }
.sp-top .sp-icon-btn { color: #d9e5f5; }
.sp-top .sp-icon-btn:hover { color: #fff; border-color: #ffffff26; background: #ffffff0d; }
.sp-top .sp-btn { min-height: 40px; background: #2c65e5; border-color: #2c65e5; }
.sp-top .sp-btn:hover { background: #3673fa; }
.sp-top .sp-btn.ghost { background: #ffffff08; border-color: #ffffff29; color: #e8f0fb !important; }
.sp-top .sp-btn.ghost:hover { background: #ffffff16; }
.sp-icon-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--sp-fg);
  min-width: 36px;
  height: 36px;
  padding: 0 9px;
  white-space: nowrap;
  font-size: 13px;
  border-radius: var(--sp-radius);
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.sp-icon-btn:hover { background: #f1f5f9; border-color: var(--sp-line); }
.sp-icon-btn svg { width: 17px; height: 17px; }
.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--sp-acc);
  color: #fff !important;
  min-height: 36px;
  padding: 0 13px;
  border-radius: var(--sp-radius);
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid var(--sp-acc);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 0 6px 14px -8px rgba(37, 99, 235, .8);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.sp-btn:hover { background: var(--sp-acc-dark); border-color: var(--sp-acc-dark); color: #fff !important; text-decoration: none; }
.sp-btn:active { transform: translateY(1px); }
.sp-btn svg { width: 15px; height: 15px; }
.sp-btn.alt {
  background: #fff;
  color: var(--sp-acc) !important;
  border: 1px solid #bfdbfe;
  box-shadow: none;
}
.sp-btn.alt:hover { background: var(--sp-acc-weak); border-color: var(--sp-acc); color: var(--sp-acc-dark) !important; }
.sp-btn.ghost {
  background: #fff;
  color: var(--sp-fg) !important;
  border: 1px solid var(--sp-line);
  box-shadow: none;
}
.sp-btn.ghost:hover { background: #f8fafc; border-color: var(--sp-line-strong); }

/* ---------- badan: sidebar + peta penuh ---------- */
.sp-body { flex: 1; min-height: 0; display: flex; position: relative; padding: 16px; gap: 16px; }
.sp-side {
  width: 288px;
  flex: none;
  background: var(--sp-surface);
  border: 1px solid var(--sp-line);
  border-radius: 12px;
  padding: 20px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: margin-left .22s ease, transform .22s ease, visibility .22s;
  z-index: 1000;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.sp-side::-webkit-scrollbar { width: 8px; }
.sp-side::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
.sp-side-off .sp-side { margin-left: -304px; visibility: hidden; pointer-events: none; }
.sp-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 2px; }
.sp-side-title { font-size: 14px; font-weight: 650; letter-spacing: -.02em; color: var(--sp-fg); }
.sp-side-close { display: none; }
.sp-side-backdrop {
  position: absolute;
  inset: 0;
  z-index: 999;
  background: rgba(15, 23, 42, .38);
  backdrop-filter: blur(1.5px);
  display: none;
}
.sp-side-off .sp-side-backdrop { display: none; }

.sp-search-wrap { position: relative; }
.sp-search-wrap > svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #94a3b8;
  pointer-events: none;
}
.sp-search {
  width: 100%;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  padding: 11px 11px 11px 35px;
  font: inherit;
  font-size: 13.5px;
  background: #fff;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sp-search::placeholder { color: #728299; }
.sp-search:focus { outline: none; border-color: var(--sp-acc); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.sp-desc {
  color: var(--sp-mut);
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  padding: 9px 10px;
  background: #f8fafc;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
}
.sp-sec-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--sp-mut);
  margin-bottom: 7px;
  font-weight: 700;
}
.sp-sec-actions { display: flex; align-items: center; gap: 10px; }
.sp-legend { display: flex; flex-direction: column; gap: 1px; }
.sp-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  padding: 7px 8px;
  border-radius: 9px;
  font: inherit;
  color: inherit;
  transition: background .15s ease, opacity .15s ease;
}
.sp-chip:hover { background: #f1f5f9; }
.sp-chip:focus-visible { outline: 3px solid rgba(37, 99, 235, .3); outline-offset: -1px; }
.sp-chip.off { opacity: .42; }
.sp-chip.off .sp-chip-t { text-decoration: line-through; }
.sp-chip-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-chip-n { color: var(--sp-mut); font-size: 11px; font-variant-numeric: tabular-nums; background: #edf2f8; border-radius: 5px; min-width: 24px; text-align: center; padding: 2px 5px; }
.sp-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
  background: var(--sp-dot-color, #2563eb);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(15, 23, 42, .08);
}
.sp-empty-mini {
  color: var(--sp-mut);
  font-size: 12.5px;
  line-height: 1.5;
  padding: 7px 8px;
}
.sp-segs {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 11px;
  background: #f1f5f9;
}
.sp-seg {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px;
  flex: 1;
  border: 0;
  background: transparent;
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--sp-mut);
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.sp-seg svg { width: 16px; height: 16px; }
.sp-seg:hover { color: var(--sp-fg); }
.sp-seg.active {
  background: #fff;
  color: var(--sp-acc);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
}
.sp-menus { display: flex; flex-direction: column; gap: 2px; }
.sp-menu {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  padding: 9px 9px;
  border-radius: 9px;
  font: inherit;
  font-size: 13.5px;
  color: var(--sp-fg) !important;
  transition: background .15s ease;
}
.sp-menu:hover { background: #f1f5f9; text-decoration: none; }
.sp-menu > svg:first-child { width: 16px; height: 16px; color: var(--sp-mut); flex: none; }
.sp-menu-label { flex: 1; min-width: 0; }
.sp-menu-chev { width: 14px; height: 14px; color: #cbd5e1; flex: none; }
.sp-link {
  border: 0;
  background: none;
  color: var(--sp-acc) !important;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
}
.sp-link:hover { color: var(--sp-acc-dark) !important; text-decoration: underline; }
.sp-count {
  color: #31557b;
  font-size: 12.5px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f4f8ff;
  border: 1px solid var(--sp-line);
  font-variant-numeric: tabular-nums;
}
.sp-foot { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; border-top: 1px solid var(--sp-line); padding-top: 10px; }
.sp-inline { display: inline; margin: 0; }
.sp-account {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius-lg);
  background: #f8fafc;
}
.sp-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--sp-acc-weak);
  color: var(--sp-acc-dark);
  font-size: 12px;
  font-weight: 700;
}
.sp-account-info { flex: 1; min-width: 0; }
.sp-account-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-account-sub { font-size: 11.5px; color: var(--sp-mut); }
.sp-logout { min-width: 32px; width: 32px; height: 32px; padding: 0; border-color: var(--sp-line); background: #fff; }
.sp-logout:hover { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }

/* ---------- peta ---------- */
.sp-mapwrap { position: relative; flex: 1; min-width: 0; border-radius: 12px; border: 1px solid var(--sp-line); overflow: hidden; }
.sp-map { position: absolute; inset: 0; background: #e8edf3; }
.sp-note {
  position: absolute;
  z-index: 800;
  left: 12px;
  right: 64px;
  top: 12px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
  padding: 12px 14px;
  border-radius: var(--sp-radius);
  font-size: 14px;
  max-width: 440px;
  line-height: 1.5;
  box-shadow: 0 8px 20px -12px rgba(15, 23, 42, .35);
}
.sp-note[data-state="loading"] { background: #f8fafc; border-color: #cbd5e1; color: #334155; }
.sp-map[hidden] ~ .sp-note { display: none; }
.sp-table { position: absolute; inset: 0; overflow: auto; background: #fff; z-index: 600; }
.sp-tbl { width: 100%; border-collapse: collapse; }
.sp-tbl th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  text-align: left;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #475569;
  border-bottom: 1px solid var(--sp-line);
  white-space: nowrap;
}
.sp-tbl th:hover { background: #f1f5f9; }
.sp-tbl td { padding: 10px 14px; border-bottom: 1px solid var(--sp-line); vertical-align: top; }
.sp-tbl tbody tr { cursor: pointer; transition: background .12s ease; }
.sp-tbl tbody tr:hover, .sp-tbl tbody tr:focus-visible { background: #f8fafc; }
.sp-tbl tbody tr:focus-visible { outline: 2px solid rgba(37, 99, 235, .35); outline-offset: -2px; }
.sp-empty { text-align: center; color: var(--sp-mut); padding: 34px !important; }

/* ---------- penanda titik: bulat & menyesuaikan zoom ---------- */
.sp-dot-wrap { background: none !important; border: 0 !important; }
.sp-dot-marker {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-dot-core {
  width: var(--sp-dot-size, 12px);
  height: var(--sp-dot-size, 12px);
  border-radius: 50%;
  background: var(--sp-dot-color, #2563eb);
  box-shadow: 0 0 0 1.5px #fff, 0 1px 5px rgba(15, 23, 42, .35);
  transition: width .16s ease, height .16s ease, transform .16s ease, box-shadow .16s ease;
}
.sp-dot-wrap:hover .sp-dot-core,
.sp-dot-wrap:focus-visible .sp-dot-core {
  transform: scale(1.35);
  box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(15, 23, 42, .38);
}
.sp-dot-wrap.is-active .sp-dot-core {
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(37, 99, 235, .28), 0 4px 12px rgba(15, 23, 42, .35);
}

/* ---------- cluster ---------- */
.sp-map .marker-cluster,
.sp-map .marker-cluster-small,
.sp-map .marker-cluster-medium,
.sp-map .marker-cluster-large {
  background-color: rgba(37, 99, 235, .16);
}
.sp-map .marker-cluster div,
.sp-map .marker-cluster-small div,
.sp-map .marker-cluster-medium div,
.sp-map .marker-cluster-large div {
  background-color: var(--sp-acc);
  color: #fff;
  font: 700 12px/30px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .38);
}
.sp-map .marker-cluster span { line-height: 30px; }

/* ---------- kontrol Leaflet ---------- */
.sp-map .leaflet-control-zoom {
  border: 0 !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 8px 22px -10px rgba(15, 23, 42, .4) !important;
  margin: 0 16px 22px 0 !important;
}
.sp-map .leaflet-control-zoom a {
  width: 38px;
  height: 38px;
  line-height: 38px;
  color: var(--sp-fg);
  background: #fff;
  border-bottom: 1px solid #eef2f7;
  font-size: 19px;
  font-weight: 400;
  transition: background .15s ease;
}
.sp-map .leaflet-control-zoom a:hover { background: #f1f5f9; color: var(--sp-fg); }
.sp-map .leaflet-control-zoom a:last-child { border-bottom: 0; }
.sp-map .leaflet-control-layers {
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 22px -10px rgba(15, 23, 42, .4) !important;
  background: #fff;
  padding: 3px;
}
.sp-map .leaflet-control-layers-toggle {
  width: 38px;
  height: 38px;
  background-size: 19px 19px;
  border-radius: 9px;
}
.sp-map .leaflet-control-layers-expanded { padding: 10px 13px; font-size: 13px; }
.sp-map .leaflet-control-attribution {
  background: rgba(255, 255, 255, .86) !important;
  border-radius: 0 6px 0 0;
  font-size: 10.5px;
  padding: 2px 7px;
  backdrop-filter: blur(4px);
}
.sp-map .leaflet-control-scale-line {
  border-color: #64748b;
  background: rgba(255, 255, 255, .8);
  border-radius: 4px;
  font-size: 10.5px;
  padding: 1px 5px;
}
.sp-map .leaflet-bar a:focus-visible { outline: 2px solid rgba(37, 99, 235, .5); outline-offset: -2px; }
.sp-ctx-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--sp-acc) !important; text-decoration: none; }
.sp-ctx-link:hover { text-decoration: underline; }

/* ---------- popup ---------- */
.sp-map .leaflet-popup-content-wrapper {
  border-radius: 14px;
  box-shadow: 0 20px 44px -16px rgba(15, 23, 42, .45);
  padding: 0;
}
.sp-map .leaflet-popup-content { margin: 0; }
.sp-map .leaflet-popup-tip { box-shadow: 0 8px 20px -12px rgba(15, 23, 42, .4); }
.sp-map .leaflet-popup-close-button {
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  line-height: 26px;
  border-radius: 8px;
  color: var(--sp-mut) !important;
  font-size: 20px;
}
.sp-map .leaflet-popup-close-button:hover { background: #f1f5f9; color: var(--sp-fg) !important; }
.sp-popup { font: 13px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; max-height: 320px; overflow: auto; padding: 15px 16px; }
.sp-popup-img { width: 100%; max-height: 150px; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }
.sp-popup-title { font-weight: 700; font-size: 15px; letter-spacing: -.01em; margin-bottom: 5px; padding-right: 22px; }
.sp-popup-addr { color: var(--sp-mut); margin: 5px 0; }
.sp-row { margin: 4px 0; white-space: pre-wrap; word-break: break-word; }
.sp-row b { color: #334155; font-weight: 600; }
.sp-popup .sp-link { display: inline-block; margin-top: 7px; }
.sp-popup-foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--sp-line); }
.sp-popup-edit { display: inline-flex; align-items: center; gap: 6px; color: var(--sp-acc) !important; font-size: 12.5px; font-weight: 600; text-decoration: none; }
.sp-popup-edit:hover { text-decoration: underline; }
.sp-field { margin: 12px 0; overflow-wrap: anywhere; }
.sp-field-label { color: var(--sp-mut); font-size: 11px; font-weight: 500; margin-bottom: 3px; }
.sp-field-value { white-space: pre-wrap; overflow-wrap: anywhere; }
.sp-field-h1 > .sp-field-value { font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.03em; }
.sp-field-h2 > .sp-field-value { font-size: 20px; line-height: 1.3; font-weight: 650; letter-spacing: -.02em; }
.sp-tbl .sp-popup-img { max-height: 80px; width: auto; max-width: 160px; }

.sp-badge { display: inline-block; color: #fff; padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.sp-tags { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.sp-tag { background: #e2e8f0; border-radius: 6px; padding: 0 7px; font-size: 12px; }
.sp-pin-wrap { background: none; border: 0; }
.sp-pin {
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-pin span { transform: rotate(45deg); font-size: 13px; line-height: 1; }

/* ---------- toast ---------- */
.sp-toast {
  position: absolute;
  z-index: 2000;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  padding: 9px 17px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45);
  max-width: 90%;
  animation: sp-toast-in .18s ease-out;
}
.sp-toast.err { background: #b91c1c; }
@keyframes sp-toast-in {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- modal ---------- */
.sp-modal {
  position: absolute;
  inset: 0;
  z-index: 3000;
  background: rgba(15, 23, 42, .48);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.sp-modal-box {
  background: #fff;
  border-radius: 16px;
  width: min(600px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5);
  animation: sp-modal-in .18s ease-out;
  outline: none;
}
@keyframes sp-modal-in {
  from { opacity: 0; transform: translateY(8px) scale(.99); }
  to { opacity: 1; transform: none; }
}
.sp-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--sp-line);
  font-size: 15px;
  font-weight: 700;
}
.sp-x {
  border: 1px solid transparent;
  background: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--sp-mut);
  flex: none;
}
.sp-x:hover { background: #f1f5f9; color: var(--sp-fg); border-color: var(--sp-line); }
.sp-x svg { width: 18px; height: 18px; }
.sp-modal-body { padding: 16px 18px; overflow: auto; }
.sp-modal-foot {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 18px;
  border-top: 1px solid var(--sp-line);
  background: #fbfcfe;
  border-radius: 0 0 16px 16px;
}
.sp-modal-msg { flex: 1; font-size: 12.5px; color: var(--sp-mut); }
.sp-modal-msg.err { color: #b91c1c; }
.sp-krow, .sp-frow { display: flex; gap: 6px; align-items: center; margin-bottom: 7px; }
.sp-frow { justify-content: space-between; }
.sp-in {
  border: 1px solid var(--sp-line-strong);
  border-radius: 9px;
  padding: 7px 9px;
  font: inherit;
  min-width: 0;
  background: #fff;
  color: inherit;
}
.sp-in:focus { outline: none; border-color: var(--sp-acc); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.sp-in.grow { flex: 1; }
.sp-in.emo { width: 52px; text-align: center; }
.sp-color {
  width: 38px;
  height: 34px;
  padding: 2px;
  border: 1px solid var(--sp-line-strong);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  flex: none;
}
.sp-mini {
  border: 1px solid var(--sp-line);
  background: #fff;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  color: var(--sp-mut);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.sp-mini:hover { background: #f1f5f9; border-color: var(--sp-line-strong); color: var(--sp-fg); }
.sp-mini svg { width: 15px; height: 15px; }
.sp-mini.danger { color: #b91c1c; }
.sp-mini.danger:hover { background: #fef2f2; border-color: #fecaca; }
.sp-check { display: flex; gap: 8px; align-items: center; padding: 5px 0; cursor: pointer; flex: 1; }
.sp-check input { accent-color: var(--sp-acc); width: 16px; height: 16px; flex: none; }
.sp-grp { margin: 14px 0 5px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--sp-mut); font-weight: 700; }

/* ---------- layar kunci file ekspor ---------- */
.sp-lock { max-width: 380px; margin: 15vh auto; text-align: center; display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.sp-lock h1 { font-size: 1.35rem; margin: 0; letter-spacing: -.02em; }
.sp-lock p { color: var(--sp-mut); margin: 0; }
.sp-lock-msg { color: #b91c1c; min-height: 1.4em; margin: 0; }
.sp-lock .sp-btn { align-self: center; min-width: 120px; }

.sp-vlinks { display: flex; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--sp-line); flex-wrap: wrap; }
.sp-root :focus-visible { outline: 3px solid #427bea; outline-offset: 2px; }

/* ---------- responsif ---------- */
@media (max-width: 760px) {
  .sp-body { padding: 0; gap: 0; }
  .sp-mapwrap { border: 0; border-radius: 0; }
  .sp-brand-mark { display: none; }
  .sp-side { border-radius: 0; border: 0; }
  .sp-side {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(86vw, 320px);
    box-shadow: 8px 0 30px rgba(15, 23, 42, .2);
    margin-left: 0 !important;
  }
  .sp-side-off .sp-side { transform: translateX(-104%); }
  .sp-side-head { display: flex; }
  .sp-side-close { display: inline-flex; }
  .sp-side-backdrop { display: block; }
  .sp-title { font-size: 14.5px; }
  .sp-top { min-height: 64px; padding: 0 10px; gap: 8px; }
  .sp-btn { padding: 0 10px; }
  .sp-btn-label { display: none; }
  .sp-tools { gap: 5px; }
  .sp-map .leaflet-control-zoom { margin: 0 12px 18px 0 !important; }
}
@media (max-width: 420px) {
  .sp-brand-name { font-size: 9px; }
  .sp-desc { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-root *, .sp-root *::before, .sp-root *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
