/* VOICE work: premium enterprise dashboard for a university alumni office
   IDEA an embassy-grade atlas: navy cartography with gold wayfinding marks
   PICTURE the world map itself, wide and tall, with clustered gold/navy pins
   COLOUR white ground, navy #064e2b header band & marks, gold #e0b800 accent, slate neutrals
   TYPE Plus Jakarta Sans 800 display + Plus Jakarta Sans text
   LAYOUT laptop: title+search row, filter bar, 8 KPIs, full-width map, 3-col charts; phone: stacked, map 60svh */

/* ================= Token warna ================= */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f8f5;
  --surface-3: #e4f0e8;
  --ink: #0b2116;
  --muted: #53685b;
  --line: #dde9e1;
  --navy: #064e2b;
  --navy-2: #0a6336;
  --navy-3: #00843f;
  --gold: #e0b800;
  --gold-ink: #7a6400;
  --gold-soft: #fff8c4;
  --ok: #0f7a5f; --ok-bg: #e2f5ee;
  --warn: #8a5a00; --warn-bg: #fdf1d6;
  --err: #b42318; --err-bg: #fde8e6;
  --info: #00843f; --info-bg: #e5edfa;
  --chart-main: #0a6336;
  --map-sea: #d3e9dc;
  --map-land: #fbfcfe;
  --map-border: #a6c8b2;
  --choro-1: #dcefe3; --choro-2: #a8d9b9; --choro-3: #5fbb85; --choro-4: #139a52; --choro-5: #064e2b;
  --shadow: 0 1px 2px rgba(6, 78, 43, .06), 0 4px 14px rgba(6, 78, 43, .06);
  --radius: 12px;
  --gut: max(4vw, 16px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #06140d; --surface: #0b1f15; --surface-2: #0f2a1d; --surface-3: #15372a;
    --ink: #eaf5ee; --muted: #9dbfaa; --line: #1d4733;
    --gold: #ecc800; --gold-ink: #f2d94a; --gold-soft: #2a2608;
    --ok: #4fd1a5; --ok-bg: #0d2e26; --warn: #f2c360; --warn-bg: #2e2410; --err: #ff8a7d; --err-bg: #3a1714; --info: #8fb4f0; --info-bg: #13284a;
    --chart-main: #4cc282;
    --map-sea: #04100a; --map-land: #12361f; --map-border: #2c6b47;
    --choro-1: #17452b; --choro-2: #1f6b3e; --choro-3: #2f9a5a; --choro-4: #9aa83a; --choro-5: #ecc800;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .3);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #06140d; --surface: #0b1f15; --surface-2: #0f2a1d; --surface-3: #15372a;
  --ink: #eaf5ee; --muted: #9dbfaa; --line: #1d4733;
  --gold: #ecc800; --gold-ink: #f2d94a; --gold-soft: #2a2608;
  --ok: #4fd1a5; --ok-bg: #0d2e26; --warn: #f2c360; --warn-bg: #2e2410; --err: #ff8a7d; --err-bg: #3a1714; --info: #8fb4f0; --info-bg: #13284a;
  --chart-main: #4cc282;
  --map-sea: #04100a; --map-land: #12361f; --map-border: #2c6b47;
  --choro-1: #17452b; --choro-2: #1f6b3e; --choro-3: #2f9a5a; --choro-4: #9aa83a; --choro-5: #ecc800;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .3);
}

/* ================= Dasar ================= */
* { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; overflow-x: clip; -webkit-font-smoothing: antialiased; }
body.noscroll { overflow: hidden; }
[hidden] { display: none !important; }
a { color: var(--navy-3); }
:root[data-theme="dark"] a { color: var(--info); }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.12; }
h1 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 13px; }
.nowrap { white-space: nowrap; }
svg:not(.leaflet-zoom-animated) { width: 18px; height: 18px; flex: none; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-size: 13px; }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.scroll { overflow-x: auto; }
.spacer { flex: 1; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ================= Header ================= */
.topbar { position: sticky; top: 0; z-index: 1000; background: var(--navy); color: #fff; padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid #0d5c33; }
.topbar-in { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 18px; min-height: 62px; padding: 8px max(var(--gut), env(safe-area-inset-right, 0px)) 8px max(var(--gut), env(safe-area-inset-left, 0px)); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; margin-right: auto; }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; display: block; flex: none; background: #fff200; box-shadow: 0 0 0 2px rgba(255,255,255,.18); }
.brand-mark img { width: 100%; height: 100%; display: block; }
.brand-text strong { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.brand-text small { display: block; font-size: 12px; color: #b7d6c2; }
.mainnav { display: flex; gap: 4px; }
.mainnav a { display: flex; align-items: center; gap: 7px; color: #d4eadb; text-decoration: none; padding: 9px 13px; border-radius: 9px; font-weight: 600; font-size: 14px; }
.mainnav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.mainnav a.on { background: rgba(224, 184, 0, .16); color: #ffe94d; box-shadow: inset 0 -2px 0 var(--gold); }
.userbox .ub { display: flex; align-items: center; gap: 8px; }
.ub-av { width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-weight: 800; }
.ub-txt b { display: block; font-size: 13px; line-height: 1.2; }
.ub-txt small { color: #b7d6c2; font-size: 12px; }

.simbar { background: var(--gold-soft); border-bottom: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); color: var(--ink); font-size: 13px; }
.simbar-in { max-width: 1320px; margin: 0 auto; display: flex; gap: 10px; align-items: center; padding: 7px max(var(--gut), env(safe-area-inset-right, 0px)) 7px max(var(--gut), env(safe-area-inset-left, 0px)); flex-wrap: wrap; }
.sim-tag { background: var(--gold); color: #1d1600; font-weight: 800; font-size: 11px; padding: 2px 8px; border-radius: 4px; letter-spacing: .04em; white-space: nowrap; }
.sim-tag.dark { display: inline-block; margin-top: 10px; }

/* ================= Tombol & input ================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 15px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 14px/1.2 'Plus Jakarta Sans', system-ui, sans-serif; font-family: inherit; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--navy-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.sm { min-height: 32px; padding: 5px 11px; font-size: 13px; }
.btn.sm svg { width: 15px; height: 15px; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
:root[data-theme="dark"] .btn.primary { background: var(--gold); border-color: var(--gold); color: #1d1600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { background: var(--gold); border-color: var(--gold); color: #1d1600; } }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #1d1600; }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn.danger-ghost { background: transparent; color: var(--err); border-color: color-mix(in srgb, var(--err) 40%, transparent); }
.btn.li { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.btn.full { width: 100%; }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.icon-btn.danger:hover { color: var(--err); }
.icon-btn.light { color: #d4eadb; }
.icon-btn.light:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: transparent; }
input, select, textarea { font: 15px/1.3 'Plus Jakarta Sans', system-ui, sans-serif; font-family: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; min-height: 40px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy-3) 18%, transparent); }
input[readonly] { background: var(--surface-2); color: var(--muted); }
select { cursor: pointer; }
.fsel { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.fsel select, .fsel input { font-size: 14px; color: var(--ink); font-weight: 500; }
.fsel.grow { flex: 1 1 260px; }

/* ================= Hero & pencarian ================= */
.view { padding-block: 22px 40px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-text { flex: 1 1 420px; }
.hero-emblem { flex: none; width: clamp(150px, 15vw, 210px); height: auto; margin: -6px 0 -4px; filter: drop-shadow(0 6px 14px rgba(6, 78, 43, .18)); }
.hero-text h1 { max-width: 22ch; }
.hero-text p { margin-top: 6px; font-size: 15px; max-width: 70ch; }
.searchbox { position: relative; flex: 0 1 460px; width: 100%; }
.searchbox input { padding-left: 42px; padding-right: 40px; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); font-size: 15px; box-shadow: var(--shadow); }
.sb-ico { position: absolute; left: 14px; top: 15px; color: var(--muted); }
.sb-clear { position: absolute; right: 6px; top: 7px; width: 34px; height: 34px; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
.sb-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px rgba(6, 78, 43, .18); z-index: 1100; max-height: 420px; overflow-y: auto; padding: 6px; }
.sr-group { font-size: 12px; font-weight: 700; color: var(--muted); padding: 8px 10px 4px; }
.sr-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; background: transparent; border: 0; border-radius: 8px; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.sr-item:hover, .sr-item.on { background: var(--surface-2); }
.sr-item img, .sr-ico { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.sr-ico { display: grid; place-items: center; background: var(--surface-3); color: var(--navy-3); }
.sr-item strong { display: block; font-size: 14px; }
.sr-item small { display: block; color: var(--muted); font-size: 12.5px; }
.sr-empty { padding: 12px; color: var(--muted); }
.sr-all { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 4px; padding: 10px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--navy-3); font: 600 13px 'Plus Jakarta Sans', system-ui, sans-serif; font-family: inherit; cursor: pointer; text-align: left; }
:root[data-theme="dark"] .sr-all { color: var(--info); }

/* ================= Filter ================= */
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); margin-bottom: 16px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: 600 13px 'Plus Jakarta Sans', system-ui, sans-serif; font-family: inherit; cursor: pointer; white-space: nowrap; }
.chip i { width: 9px; height: 9px; border-radius: 50%; }
.chip b { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.on b { color: #ffe94d; }
.selects { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) auto; gap: 10px; align-items: end; margin-top: 12px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.active-filters:not(:empty) { margin-top: 10px; }
.af { display: inline-flex; align-items: center; gap: 5px; padding: 4px 6px 4px 10px; border-radius: 999px; background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); color: var(--ink); font: 500 12.5px 'Plus Jakarta Sans', system-ui, sans-serif; font-family: inherit; cursor: pointer; }
.af svg { width: 14px; height: 14px; }

/* ================= KPI ================= */
.kpis { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 13px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 8px; align-items: center; box-shadow: var(--shadow); }
.kpi-ico { grid-row: 1; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--navy-3)) 14%, transparent); color: var(--c, var(--navy-3)); }
.kpi-ico svg { width: 15px; height: 15px; }
.kpi-label { grid-row: 1; font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.25; }
.kpi-val { grid-column: 1 / -1; font-size: clamp(24px, 2.2vw, 30px); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; margin-top: 6px; }
.kpi-sub { grid-column: 1 / -1; font-size: 12px; color: var(--muted); line-height: 1.3; }
.kpi.lead { background: var(--navy); border-color: var(--navy); color: #fff; }
.kpi.lead .kpi-label, .kpi.lead .kpi-sub { color: #c2dccb; }
.kpi.lead .kpi-val { color: #ffe94d; }
.kpi.lead .kpi-ico { background: rgba(224, 184, 0, .2); color: #ffe94d; }
.admin-kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.admin-kpis .kpi { grid-template-columns: 1fr; }

/* ================= Peta ================= */
.mapcard { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--map-sea); margin-bottom: 26px; }
#map { height: clamp(460px, 68vh, 760px); width: 100%; background: var(--map-sea); font-family: inherit; }
#map.vector { background: var(--map-sea); }
.map-tools { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 800; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; pointer-events: none; }
.map-tools > * { pointer-events: auto; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; box-shadow: var(--shadow); }
.tg { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--muted); padding: 7px 11px; border-radius: 7px; font: 600 13px 'Plus Jakarta Sans', system-ui, sans-serif; font-family: inherit; cursor: pointer; white-space: nowrap; }
.tg svg { width: 15px; height: 15px; }
.tg.on { background: var(--navy); color: #fff; }
.mini-sel { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px 3px 3px 10px; box-shadow: var(--shadow); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.mini-sel select { min-height: 32px; padding: 4px 8px; border: 0; font-size: 13px; width: auto; background: var(--surface-2); }
.map-tools .btn.sm { box-shadow: var(--shadow); }
.legend { position: absolute; left: 12px; bottom: 12px; z-index: 800; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; box-shadow: var(--shadow); min-width: 190px; max-width: 240px; }
.legend strong { font-size: 13px; }
.legend ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend li b { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); }
.legend i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); flex: none; }
.legend .lg-sym { border-top: 1px solid var(--line); margin-top: 7px; padding-top: 6px; }
.legend i.ring { background: transparent; border: 2px dashed var(--muted); box-shadow: none; }
.legend i.clu { background: var(--navy); border: 2px solid var(--gold); width: 14px; height: 14px; }
.lg-scale, .lg-heat { border-top: 1px solid var(--line); margin-top: 7px; padding-top: 6px; display: grid; gap: 3px; }
.lg-scale div { display: flex; }
.lg-scale div i { flex: 1; height: 9px; border-radius: 0; border: 0; box-shadow: none; }
.lg-heat i { height: 9px; border-radius: 3px; border: 0; width: 100%; background: linear-gradient(90deg, #064e2b, #00a651, #e0b800, #fff6a8); box-shadow: none; }
.lg-scale small, .lg-heat small, .lg-total { color: var(--muted); font-size: 12px; display: block; }
.lg-total { margin-top: 6px; }
.map-note { position: absolute; right: 60px; bottom: 14px; z-index: 800; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 6px 10px; font-size: 12.5px; color: var(--muted); box-shadow: var(--shadow); max-width: 300px; }

/* Marker */
.awm-pin span { display: block; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c); border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(4, 53, 29, .45); }
.awm-pin.anon span { background: #fff; border: 3px dashed var(--c); border-radius: 50%; transform: none; }
.awm-pin.pending span { outline: 2px dashed #b42318; outline-offset: 2px; }
.awm-cluster div { width: 100%; height: 100%; border-radius: 50%; background: rgba(224, 184, 0, .35); display: grid; place-items: center; }
.awm-cluster span { width: calc(100% - 8px); height: calc(100% - 8px); border-radius: 50%; background: var(--navy); color: #ffe94d; font-weight: 800; font-size: 13px; display: grid; place-items: center; border: 2px solid #e0b800; box-shadow: 0 2px 8px rgba(4, 53, 29, .4); }

/* Popup */
.leaflet-container { font: inherit; }
.awm-popup .leaflet-popup-content-wrapper { background: var(--surface); color: var(--ink); border-radius: 14px; box-shadow: 0 12px 34px rgba(4, 53, 29, .28); border: 1px solid var(--line); }
.awm-popup .leaflet-popup-tip { background: var(--surface); }
.awm-popup .leaflet-popup-content { margin: 14px 16px; font-size: 13.5px; line-height: 1.45; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.pp { display: flex; gap: 12px; align-items: flex-start; }
.pp-photo { width: 58px; height: 58px; border-radius: 50%; border: 2px solid var(--gold); flex: none; object-fit: cover; }
.pp-main { display: grid; gap: 3px; }
.pp-name { font-size: 15px; font-weight: 800; letter-spacing: -.01em; padding-right: 10px; }
.pp-line { color: var(--muted); display: flex; align-items: center; gap: 4px; font-size: 12.5px; }
.pp-line svg { width: 13px; height: 13px; }
.pp-job { font-weight: 600; }
.pp-badge { justify-self: start; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--ink); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.pp-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.pp-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pp-actions .btn.li { color: #fff; }
.cp { display: grid; gap: 4px; min-width: 200px; }
.cp-k { font-size: 12px; color: var(--muted); font-weight: 600; }
.cp-name { font-size: 17px; font-weight: 800; }
.cp-num { font-size: 28px; font-weight: 800; color: var(--navy-3); line-height: 1.1; font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .cp-num { color: var(--gold); }
.cp-num small { font-size: 13px; font-weight: 600; color: var(--muted); }
.cp-list { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 2px; }
.cp-list li { display: flex; align-items: center; gap: 6px; }
.cp-list i { width: 9px; height: 9px; border-radius: 50%; }
.cp-list b { margin-left: auto; }
.cp-cities { color: var(--muted); font-size: 12.5px; margin-bottom: 6px; }
.cp .btn.primary { color: #fff; }

/* Drawer profil */
.drawer { position: absolute; top: 64px; right: 12px; bottom: 12px; width: min(330px, calc(100% - 24px)); z-index: 900; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(4, 53, 29, .3); padding: 20px 18px; overflow-y: auto; text-align: center; }
.drawer-x { position: absolute; top: 8px; right: 8px; }
.dr-photo { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--gold); margin: 6px auto 10px; display: block; object-fit: cover; }
.drawer h3 { font-size: 19px; }
.dr-job { color: var(--muted); margin: 4px 0 14px; font-weight: 600; }
.dr-job span { font-weight: 500; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; text-align: left; margin: 0 0 14px; font-size: 13.5px; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; }
.dl .ok { color: var(--ok); font-weight: 700; }
.dr-privacy { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; color: var(--muted); text-align: left; margin-top: 12px; }
.dr-privacy svg { width: 14px; height: 14px; margin-top: 2px; }

/* Leaflet kontrol menyesuaikan tema */
.leaflet-bar a { background: var(--surface); color: var(--ink); border-bottom-color: var(--line); }
.leaflet-bar a:hover { background: var(--surface-2); }
.leaflet-control-attribution { background: color-mix(in srgb, var(--surface) 85%, transparent) !important; color: var(--muted); }
.leaflet-control-scale-line { background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--ink); border-color: var(--muted); }

/* ================= Grafik ================= */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.chartcard { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.chartcard figcaption { margin-bottom: 8px; }
.chartcard h3 { font-size: 15.5px; }
.chartcard small { color: var(--muted); font-size: 12.5px; }
.cbox { position: relative; height: 300px; }
.charts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cbox.tall { height: 360px; }
.mt-lg { margin-top: 28px; }
.indo-filters { display: grid; grid-template-columns: minmax(0, 1.1fr) repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.indo-head { display: grid; gap: 2px; font-size: 14px; align-self: center; }
.indo-head small { font-size: 12px; }
.wil-box { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.wil-box .wil-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; font-size: 13px; }
.presisi-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--ink); }
.presisi-badge.tepat { background: var(--ok-bg); color: var(--ok); }
.footnote { margin-top: 18px; font-size: 13px; display: flex; gap: 6px; }

/* ================= Direktori ================= */
.dir-tools { display: flex; gap: 10px; flex: 1 1 420px; flex-wrap: wrap; align-items: end; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-top: 14px; }
.dcard { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.dcard.anon { background: var(--surface-2); }
.dc-photo { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--gold); flex: none; object-fit: cover; }
.dc-body { flex: 1; display: grid; gap: 3px; align-content: start; }
.dc-body h3 { font-size: 16px; }
.dc-job { font-weight: 600; font-size: 13.5px; }
.dc-meta { color: var(--muted); font-size: 13px; display: flex; gap: 4px; align-items: center; }
.dc-meta svg { width: 13px; height: 13px; }
.dc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.dc-act { display: flex; gap: 6px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 40px 16px; color: var(--muted); display: grid; justify-items: center; gap: 10px; }
.empty svg { width: 36px; height: 36px; color: var(--gold); }

/* ================= Admin ================= */
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-head p { margin-top: 6px; }
.subnav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.subnav a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.subnav a:hover { color: var(--ink); }
.subnav a.on { color: var(--ink); border-bottom-color: var(--gold); }
.badge { background: var(--err); color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 7px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.panel h2 { margin-bottom: 12px; }
.panel h2.mt, h2.mt { margin-top: 22px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.panel-head h2 { margin: 0; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.admin-grid.wide-left { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.perm-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; font-size: 13.5px; }
.perm-list li { display: flex; gap: 8px; align-items: center; }
.perm-list li.yes svg { color: var(--ok); }
.perm-list li.no { color: var(--muted); }
.perm-list li.no svg { color: var(--err); }
.feed { list-style: none; padding: 0; margin: 0 0 10px; display: grid; }
.feed li { display: grid; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.feed li span { color: var(--ink); overflow-wrap: anywhere; }
.feed li small { color: var(--muted); font-size: 12px; }
.link { font-weight: 600; font-size: 14px; }
.toolbar { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .fsel { min-width: 140px; }
.btn-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; width: 100%; }
.tbl-wrap { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.tbl-wrap.small { max-height: 340px; overflow-y: auto; margin-top: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 700; padding: 10px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.tbl .r { text-align: right; }
.tbl .c { text-align: center; }
.tbl td.errs { color: var(--err); font-size: 12.5px; }
.tbl select { min-height: 32px; padding: 4px 8px; font-size: 13px; width: auto; }
.sort { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.sort.on { color: var(--ink); }
.who { display: flex; gap: 10px; align-items: center; }
.who img { width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover; }
.who b { display: block; }
.who small { color: var(--muted); font-size: 12px; }
.empty-row { text-align: center; color: var(--muted); padding: 24px !important; }
.matrix svg.yes { color: var(--ok); }
.matrix svg.no { color: var(--muted); opacity: .6; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.pager span:last-child { display: flex; gap: 6px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.err { background: var(--err-bg); color: var(--err); }
.tag.info { background: var(--info-bg); color: var(--info); }
.tag.muted { background: var(--surface-3); color: var(--muted); }
.tags { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.alert { padding: 10px 12px; border-radius: 9px; font-size: 13.5px; }
.alert.error { background: var(--err-bg); color: var(--err); }
.switch { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; margin: 8px 0; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 40px; height: 23px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line); position: relative; flex: none; transition: background .15s; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.switch input:checked + span { background: var(--navy-3); }
.switch input:checked + span::after { transform: translateX(17px); }
.switch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.danger-zone { border-color: color-mix(in srgb, var(--err) 30%, var(--line)); }
.danger-zone p { margin-bottom: 12px; }

/* Login */
.login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 30px; align-items: center; max-width: 980px; margin: 10px auto; }
.login-art { background: var(--navy); border-radius: 18px; padding: 30px; color: #d4eadb; text-align: center; }
.login-art img { width: 100%; height: auto; max-width: 420px; display: block; margin: 0 auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,.35)); }
.login-art h2 { color: #fff; margin-top: 18px; font-size: 20px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-brand img { width: 30px; height: 30px; }
.login-art p { margin-top: 14px; font-size: 15px; }
.login-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.login-card h1 { font-size: 28px; }
.demo-cred { background: var(--surface-2); border-radius: 10px; padding: 12px; display: grid; gap: 6px; font-size: 13px; }
.demo-cred button { text-align: left; border: 1px dashed var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 7px 10px; cursor: pointer; font: inherit; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.demo-cred button b { font-family: 'Plus Jakarta Sans', sans-serif; margin-right: 6px; }
.demo-cred small { color: var(--muted); }

/* Form */
.field { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); align-content: start; }
.field input, .field select { color: var(--ink); font-weight: 500; }
.field .ferr { font-style: normal; color: var(--err); font-size: 12.5px; font-weight: 500; min-height: 0; }
.field.bad input, .field.bad select { border-color: var(--err); }
.req { color: var(--err); font-style: normal; }
.aform fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.aform legend { font-weight: 800; font-size: 15px; color: var(--ink); margin-bottom: 10px; padding: 0; }
.fgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.span2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }
.photo-field { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; }
.photo-field img { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; }
.photo-field > div { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.photo-field .lbl { width: 100%; font-weight: 700; font-size: 13px; }
.photo-field small, .photo-field .ferr { width: 100%; }
.photo-field .ferr { font-style: normal; color: var(--err); font-size: 12.5px; }
.pick-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.minimap { height: 240px; border-radius: 10px; border: 1px solid var(--line); background: var(--map-sea); }
.drop { display: grid; justify-items: center; gap: 6px; padding: 26px; border: 2px dashed var(--line); border-radius: 12px; margin: 14px 0; cursor: pointer; text-align: center; background: var(--surface-2); }
.drop.over { border-color: var(--gold); background: var(--gold-soft); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop svg { width: 30px; height: 30px; color: var(--gold); }
.drop small { color: var(--muted); }
.imp-opts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.radio { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.radio input { width: auto; min-height: 0; }
.imp-sum { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.detail { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; }
.detail-side { text-align: center; background: var(--surface-2); border-radius: 12px; padding: 18px; }
.detail-side img { width: 110px; height: 110px; border-radius: 50%; border: 3px solid var(--gold); object-fit: cover; }
.detail-side h3 { font-size: 18px; margin: 10px 0 4px; }
.detail-side p { color: var(--muted); font-weight: 600; margin-bottom: 10px; font-size: 13.5px; }
.dl.two { grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); align-content: start; }
.dl dd { overflow-wrap: anywhere; }
svg.lock { width: 12px; height: 12px; color: var(--gold-ink); vertical-align: -1px; }
.confirm-text { font-size: 15px; }

/* Modal */
.modal-back { position: fixed; inset: 0; z-index: 3000; background: rgba(2, 24, 13, .55); display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); color: var(--ink); width: min(520px, 100%); max-height: calc(100svh - 32px); border-radius: 16px; display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.modal.wide { width: min(980px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 18px; }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; }

/* Toast */
.toasts { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 4000; display: grid; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--navy); color: #fff; padding: 11px 14px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font-size: 14px; border-left: 4px solid var(--gold); transition: opacity .3s, transform .3s; }
.toast.success { border-left-color: #34d399; }
.toast.error { border-left-color: #f87171; }
.toast.out { opacity: 0; transform: translateY(8px); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 18px calc(18px + env(safe-area-inset-bottom, 0px)); font-size: 13px; background: var(--surface-2); }
.foot-in { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ================= Responsif ================= */
/* ================= Komunitas alumni ================= */
.mainnav a { position: relative; }
.nav-badge { position: absolute; top: 2px; right: 2px; font-size: 10px; padding: 0 5px; line-height: 16px; }
.userbox { display: flex; align-items: center; gap: 8px; }
.mchip { display: inline-flex; align-items: center; gap: 7px; color: #fff; text-decoration: none; font-weight: 600; font-size: 13px; padding: 3px 10px 3px 3px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.mchip:hover { background: rgba(255, 255, 255, .15); }
.mchip .ub-av { width: 28px; height: 28px; font-size: 12px; }
.kom-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }
.kom-head h1 { font-size: clamp(26px, 3.2vw, 34px); }
.kom-head p { margin-top: 4px; }
.subnav .badge { margin-left: 2px; }
.subnav a { flex: none; }
.chat { scroll-margin-top: 72px; }
.kom-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--navy); color: #d4eadb; border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; }
.kom-cta b { display: block; color: #fff; font-size: 16px; }
.kom-cta span { font-size: 14px; }
.info-bar { align-items: end; margin-bottom: 14px; }
.info-bar .chips { flex: 1 1 420px; flex-wrap: wrap; }
#memberChip:not(:empty) + #userBox .btn.gold { display: none; }
.info-list { display: grid; gap: 12px; }
.info-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.info-card.pinned { background: linear-gradient(0deg, var(--surface), var(--surface)), var(--gold-soft); box-shadow: var(--shadow), inset 0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent); }
.info-card.expired { opacity: .72; }
.info-img { width: 150px; height: 150px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.info-card:not(:has(.info-img)) { grid-template-columns: minmax(0, 1fr); }
.info-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.info-cat { font-size: 12px; font-weight: 800; color: var(--c); text-transform: uppercase; letter-spacing: .04em; margin-right: 4px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .info-cat { color: color-mix(in srgb, var(--c) 55%, #fff); } }
:root[data-theme="dark"] .info-cat { color: color-mix(in srgb, var(--c) 55%, #fff); }
.info-card h3 { font-size: 18px; margin-bottom: 6px; }
.info-body { font-size: 14.5px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.info-card.open .info-body { display: block; -webkit-line-clamp: unset; }
.info-body a, .msg-body a { color: var(--navy-3); }
.info-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.info-dl { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
.info-dl svg { width: 15px; height: 15px; }
.info-dl.late { color: var(--err); }
.tag.gold { background: var(--gold-soft); color: var(--gold-ink); }

.kom-auth { max-width: 760px; margin: 0 auto; }
.auth-tabs { display: flex; gap: 4px; background: var(--surface-2); border-radius: 11px; padding: 4px; margin-bottom: 14px; }
.auth-tabs button, .seg button { flex: 1; border: 0; background: transparent; color: var(--muted); font: 700 14px 'Plus Jakarta Sans', system-ui, sans-serif; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.auth-tabs button.on, .seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.auth-card { display: grid; gap: 12px; max-width: 460px; margin: 0 auto; }
.auth-card.wide { max-width: 760px; }
.auth-card h2 { margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--navy-3); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.linkbtn.danger { color: var(--err); }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 14px; }
.check input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; accent-color: var(--navy-3); }
.check .ferr { grid-column: 2; }
.done-card { text-align: center; display: grid; justify-items: center; gap: 10px; max-width: 560px; margin: 0 auto; }
.done-card > svg { width: 44px; height: 44px; color: var(--ok); }
.prose ol { padding-left: 20px; display: grid; gap: 8px; margin: 10px 0 0; font-size: 14px; line-height: 1.55; }
.seg { display: flex; gap: 4px; background: var(--surface-2); border-radius: 11px; padding: 4px; margin-bottom: 14px; max-width: 620px; }
.seg .badge { margin-left: 4px; }

/* chat */
.chat { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: min(72svh, 720px); min-height: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.chat-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--surface-2); }
.chat-list-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); min-height: 56px; }
.chat-items { overflow-y: auto; flex: 1; }
.chat-item { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); padding: 11px 14px; cursor: pointer; font: inherit; }
.chat-item:hover { background: var(--surface-3); }
.chat-item.on { background: var(--surface); box-shadow: inset 3px 0 0 var(--gold); }
.chat-item:disabled { opacity: .55; cursor: not-allowed; }
.ci-av, .msg-av { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #ffe94d; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.ci-av.room { border-radius: 10px; background: var(--gold); color: var(--navy); font-size: 18px; }
.ci-txt { min-width: 0; display: grid; }
.ci-txt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-txt small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-side { display: grid; justify-items: end; gap: 4px; }
.ci-side small { color: var(--muted); font-size: 11.5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--err); display: block; }
.chat-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chat-pane > .empty { margin: auto; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); min-height: 56px; }
.ch-txt { min-width: 0; display: grid; }
.ch-txt b { font-size: 15px; }
.ch-txt small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-back { display: none; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.day-sep { text-align: center; margin: 8px 0 2px; }
.day-sep span { font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--surface-2); padding: 3px 10px; border-radius: 999px; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 78%; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-av { width: 30px; height: 30px; font-size: 11px; }
.bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; min-width: 0; }
.msg.mine .bubble { background: var(--navy); border-color: var(--navy); color: #fff; border-radius: 14px 14px 4px 14px; }
.msg.mine .msg-body a { color: #ffe94d; }
.msg-name { display: block; font-size: 12px; color: var(--navy-3); margin-bottom: 2px; }
.msg-body { font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.msg.mine .msg-body i.muted { color: #b7d6c2; }
.msg-meta { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 3px; }
.msg-meta small { font-size: 11px; color: var(--muted); }
.msg.mine .msg-meta small { color: #b7d6c2; }
.msg-act { background: none; border: 0; padding: 0; font: 600 11px 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--muted); cursor: pointer; opacity: 0; }
.msg.mine .msg-act { color: #b7d6c2; }
.msg:hover .msg-act, .msg-act:focus-visible { opacity: 1; }
@media (hover: none) { .msg-act { opacity: 1; } }
.chat-compose { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-compose textarea { flex: 1; resize: none; min-height: 42px; max-height: 140px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 14.5px/1.4 'Plus Jakarta Sans', system-ui, sans-serif; background: var(--surface); color: var(--ink); }
.chat-compose textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: transparent; }
.chat-blocked { padding: 14px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); font-size: 14px; }
.chat-rules { padding: 0 14px 10px; margin: 0; }
.rc-list { display: grid; max-height: 50svh; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; }
.radio-list { display: grid; gap: 8px; margin: 10px 0 12px; }
.empty.small { padding: 20px 12px; font-size: 13.5px; }
.center { text-align: center; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.plain li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* profil saya */
.prof-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.prof-grid > .panel:first-child { grid-row: span 2; }
.prof-rec { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.prof-rec img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.prof-rec > div { display: grid; gap: 3px; font-size: 14px; }
.prof-rec b { font-size: 17px; }
.prof-rec span { color: var(--muted); }
.prof-rec .tags { justify-content: flex-start; margin-top: 6px; }
.alert.info { background: var(--info-bg); color: var(--info); margin-bottom: 12px; }
.dr-community { margin-top: 12px; display: grid; gap: 8px; }
.dr-contact .dl { margin: 8px 0 4px; }

/* admin komunitas */
.reports { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.reports li { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 8px; }
.reports li.open { border-color: color-mix(in srgb, var(--err) 45%, var(--line)); }
.rp-head { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.reports blockquote { margin: 0; padding: 8px 12px; border-left: 3px solid var(--gold); background: var(--surface-2); border-radius: 6px; font-size: 14px; overflow-wrap: anywhere; }
.admin-msgs { max-height: 60svh; overflow-y: auto; }
.photo-field img#infImg { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; }

@media (max-width: 900px) {
  .prof-grid { grid-template-columns: 1fr; }
  .prof-grid > .panel:first-child { grid-row: auto; }
  .mchip span:last-child { display: none; }
  .mchip { padding: 3px; }
}
@media (max-width: 760px) {
  .chat { grid-template-columns: 1fr; height: calc(100svh - 150px); min-height: 420px; }
  .chat .chat-pane { display: none; }
  .chat.show-pane .chat-list { display: none; }
  .chat.show-pane .chat-pane { display: flex; }
  .chat-back { display: inline-grid; }
  .chat-head .btn span { display: none; }
  .msg { max-width: 90%; }
  .info-card { grid-template-columns: 1fr; }
  .info-img { width: 100%; height: 180px; }
  .chat-compose .btn span { display: none; }
}
@media (max-width: 680px) {
  #userBox .btn.gold span { display: none; }
  #userBox .btn.gold { padding: 5px 9px; }
  .mainnav { gap: 0; }
  .mainnav a { padding: 9px 9px; }
}

@media (max-width: 1180px) {
  .indo-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .indo-head { grid-column: 1 / -1; }
  .wil-box { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .selects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .mainnav a span { display: none; }
  .mainnav a { padding: 9px 11px; }
  .ub-txt { display: none; }
  .admin-grid, .admin-grid.wide-left { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail { grid-template-columns: 1fr; }
  .dl.two { grid-template-columns: auto minmax(0, 1fr); }
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
}
@media (max-width: 680px) {
  .charts.two { grid-template-columns: 1fr; }
  .wil-box { grid-template-columns: 1fr; }
  .hero-emblem { width: min(240px, 70vw); margin: 0 auto; }
  .hero { justify-content: center; }
  body { font-size: 15px; }
  .brand-text small { display: none; }
  .topbar-in { gap: 8px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .selects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .selects .btn { grid-column: 1 / -1; }
  .charts { grid-template-columns: 1fr; }
  #map { height: 62svh; min-height: 420px; }
  .map-tools { gap: 6px; }
  .mini-sel span { display: none; }
  .mini-sel { padding-left: 3px; }
  .tg { padding: 6px 8px; font-size: 12.5px; }
  .map-tools .btn.sm { padding: 5px 8px; }
  .legend { min-width: 0; max-width: 170px; padding: 8px 10px; font-size: 12px; }
  .legend .lg-sym, .legend .lg-total { display: none; }
  .map-note { display: none; }
  .drawer { top: auto; height: 70%; }
  .fgrid { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .modal-back { padding: 0; align-items: end; }
  .modal, .modal.wide { width: 100%; max-height: 92svh; border-radius: 16px 16px 0 0; }
  .simbar-in span:last-child { font-size: 12.5px; }
}
@media (max-width: 600px) {
  .stack thead { display: none; }
  .stack tr { display: grid; padding-block: 8px; border-bottom: 1px solid var(--line); }
  .stack td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 10px; text-align: right; }
  .stack td::before { content: attr(data-l); font-weight: 600; color: var(--muted); text-align: left; }
  .stack td.r { justify-content: flex-end; }
  .tbl th, .tbl td { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
