:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef0f3;
  --sb: #f7f8fa;
  --sf: #ffffff;
  --sf2: #f3f4f6;
  --in: #f9fafb;
  --tx: #111827;
  --mu: #64748b;
  --ln: #e2e6ec;
  --ln2: #cbd5e1;
  --sh: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --sh2: 0 10px 28px rgba(15, 23, 42, 0.12);
  --ac: #0d9488;
  --ac2: #0f766e;
  --onac: #ffffff;
  --acs: rgba(13, 148, 136, 0.12);
  --ok: #15803d;
  --oks: rgba(22, 163, 74, 0.13);
  --wr: #b45309;
  --wrs: rgba(245, 158, 11, 0.16);
  --er: #dc2626;
  --ers: rgba(220, 38, 38, 0.12);
  --c1: #d97706;
  --c2: #2563eb;
  --c3: #16a34a;
  --c4: #e11d48;
  --c5: #7c3aed;
  /* Login glass wallpaper vars (hanya tampil saat belum login) */
  --w1: #cbd5e1;
  --w2: #e2e8f0;
  --w3: #f1f5f9;
  --b1: #94a3b8;
  --b2: #b0becf;
  --wl: #ffffff;
  --lcard: rgba(255, 255, 255, 0.72);
  --lborder: rgba(255, 255, 255, 0.85);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1117;
  --sb: #14171f;
  --sf: #191d26;
  --sf2: #212633;
  --in: #13161e;
  --tx: #f1f5f9;
  --mu: #94a3b8;
  --ln: rgba(255, 255, 255, 0.08);
  --ln2: rgba(255, 255, 255, 0.15);
  --sh: 0 1px 3px rgba(0, 0, 0, 0.28);
  --sh2: 0 14px 36px rgba(0, 0, 0, 0.55);
  --ac: #14b8a6;
  --ac2: #2dd4bf;
  --onac: #06221f;
  --acs: rgba(20, 184, 166, 0.16);
  --ok: #4ade80;
  --oks: rgba(74, 222, 128, 0.15);
  --wr: #fbbf24;
  --wrs: rgba(251, 191, 36, 0.16);
  --er: #f87171;
  --ers: rgba(248, 113, 113, 0.16);
  --c1: #f59e0b;
  --c2: #60a5fa;
  --c3: #4ade80;
  --c4: #fb7185;
  --c5: #a78bfa;
  --w1: #0b0e14;
  --w2: #111622;
  --w3: #181e2c;
  --b1: #131824;
  --b2: #1d2434;
  --wl: #64748b;
  --lcard: rgba(22, 26, 36, 0.72);
  --lborder: rgba(255, 255, 255, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 14px/1.55 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--tx);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ac); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 10px; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 21px; }
h3 { font-size: 15px; }
p { margin: 0 0 10px; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
}
button { cursor: pointer; }

/* ---------- WALLPAPER & BLUR (KHUSUS LAYAR LOGIN / GANTI PIN SAJA) ---------- */
.wp {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.wp svg { width: 100%; height: 100%; display: block; }
/* Hilangkan wallpaper & seluruh efek blur setelah login (mode light & dark) */
body.in .wp { display: none !important; }

.login-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login {
  width: 100%;
  max-width: 410px;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.login-brand .logo-box {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--ac);
  color: var(--onac);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
}
.login-brand h1 { font-size: 20px; margin: 0; }
.login-brand span { font-size: 12.5px; color: var(--mu); display: block; }
.login .card {
  background: var(--lcard);
  border: 1px solid var(--lborder);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: var(--sh2);
  padding: 26px;
  border-radius: 18px;
}

/* ---------- APP SHELL (CRM SOLID CLEAN, TANPA BLUR) ---------- */
.app {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  background: var(--sb);
  border-right: 1px solid var(--ln);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--ln);
}
.brand-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ac);
  color: var(--onac);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-txt b { display: block; font-size: 14.5px; line-height: 1.2; }
.brand-txt small { font-size: 11px; color: var(--mu); font-weight: 500; }

.nav-sec {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mu);
  padding: 12px 10px 4px;
}
aside button.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--mu);
  font-weight: 600;
  font-size: 13.5px;
  text-align: left;
  transition: background 0.14s, color 0.14s;
}
aside button.nav-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
aside button.nav-btn:hover {
  background: var(--sf2);
  color: var(--tx);
}
aside button.nav-btn.on {
  background: var(--acs);
  color: var(--ac);
  border-color: transparent;
}
.nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--er);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
}
.nav-badge[hidden] { display: none; }

.workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--sf);
  border-bottom: 1px solid var(--ln);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.top-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.page-title {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  border: 1px solid var(--ln);
  background: var(--sf2);
  transition: border-color 0.15s;
}
.user-btn:hover { border-color: var(--ac); }
.user-meta { text-align: left; line-height: 1.2; }
.user-meta b { display: block; font-size: 13px; }
.user-meta small { font-size: 11px; color: var(--mu); }

/* Avatar Foto atau Logo Default */
.av-img, .av-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
}
.av-img { border: 1px solid var(--ln); background: var(--sf2); }
.av-logo {
  background: var(--acs);
  color: var(--ac);
  border: 1px solid var(--ln);
}
.av-sm { width: 24px; height: 24px; }
.av-lg { width: 76px; height: 76px; }
.av-logo svg { width: 58%; height: 58%; }

main {
  padding: 20px 24px 36px;
  max-width: none;
  width: 100%;
  margin: 0;
}

/* ---------- CARDS & GRID ---------- */
.card {
  background: var(--sf);
  border: 1px solid var(--ln);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--sh);
}
.card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.card-hd h3 { margin: 0; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi {
  background: var(--sf);
  border: 1px solid var(--ln);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--sh);
  text-align: left;
  width: 100%;
  transition: border-color 0.15s, transform 0.12s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kpi:hover { border-color: var(--ac); transform: translateY(-1px); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; color: var(--mu); font-size: 12.5px; font-weight: 600; }
.kpi-ico {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--acs); color: var(--ac);
  display: grid; place-items: center;
}
.kpi-ico.w { background: var(--wrs); color: var(--wr); }
.kpi-ico.e { background: var(--ers); color: var(--er); }
.kpi-ico.o { background: var(--oks); color: var(--ok); }
.kpi-ico svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; }
.kpi-val { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.kpi-sub { font-size: 12px; color: var(--mu); }

/* Pipeline Stage Bar */
.pipe { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--sf2); margin: 10px 0 12px; gap: 2px; }
.pipe span { height: 100%; min-width: 6px; transition: width 0.25s; }
.pipe-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pipe-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--sf2); border: 1px solid var(--ln);
  font-size: 12px; font-weight: 600;
}
.pipe-pill i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ---------- CONTROLS, BUTTONS, INPUTS ---------- */
label { display: block; font-size: 12.5px; font-weight: 600; color: var(--mu); margin: 10px 0 5px; }
label:first-child { margin-top: 0; }
input, select, textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--ln2);
  background: var(--in);
  color: var(--tx);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--ac);
  box-shadow: 0 0 0 3px var(--acs);
}
textarea { min-height: 86px; resize: vertical; }
.ck { display: flex; align-items: center; gap: 8px; margin: 8px 0; color: var(--tx); font-weight: 500; cursor: pointer; }
.ck input { width: auto; accent-color: var(--ac); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px; border: 1px solid transparent;
  background: var(--ac); color: var(--onac); font-weight: 600; font-size: 13.5px;
  transition: background 0.14s, opacity 0.14s, border-color 0.14s;
}
.btn:hover { background: var(--ac2); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.g { background: var(--sf2); color: var(--tx); border-color: var(--ln); }
.btn.g:hover { border-color: var(--ln2); background: var(--sf); }
.btn.d { background: var(--ers); color: var(--er); border-color: transparent; }
.btn.d:hover { background: var(--er); color: #fff; }
.btn.ok { background: var(--oks); color: var(--ok); }
.btn.ok:hover { background: var(--ok); color: #fff; }
.btn.s { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.btn.ic { padding: 7px 9px; }
.btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }

.mu { color: var(--mu); font-size: 12.5px; }
.err { color: var(--er); font-size: 13px; min-height: 18px; margin: 8px 0; font-weight: 600; }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: var(--sf2); color: var(--tx); border: 1px solid var(--ln);
  white-space: nowrap;
}
.chip.ok { background: var(--oks); color: var(--ok); border-color: transparent; }
.chip.w { background: var(--wrs); color: var(--wr); border-color: transparent; }
.chip.e { background: var(--ers); color: var(--er); border-color: transparent; }
.chip.a { background: var(--acs); color: var(--ac); border-color: transparent; }

.row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--ln);
}
.row:last-child { border-bottom: 0; padding-bottom: 0; }
.row:first-of-type { padding-top: 2px; }

/* ---------- TABLES ---------- */
.tw { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--ln); text-align: left; vertical-align: middle; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--mu); font-weight: 700; background: var(--sf2); }
th:first-child { border-radius: 8px 0 0 8px; }
th:last-child { border-radius: 0 8px 8px 0; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--sf2); }

/* ---------- TABS, BOARD, TIMELINE, CALENDAR ---------- */
.tabs { display: inline-flex; background: var(--sf2); border: 1px solid var(--ln); border-radius: 10px; padding: 3px; gap: 2px; }
.tabs button { padding: 5px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--mu); font-weight: 600; font-size: 12.5px; }
.tabs button.on { background: var(--sf); color: var(--tx); box-shadow: var(--sh); }

.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--mu); margin: 10px 0 12px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.board { display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.bc { background: var(--sf2); border: 1px solid var(--ln); border-radius: 12px; padding: 10px; min-height: 160px; }
.bc h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--mu); margin: 2px 2px 10px; display: flex; align-items: center; justify-content: space-between; }
.jc {
  background: var(--sf); border: 1px solid var(--ln); border-left: 3px solid var(--k, var(--ac));
  border-radius: 10px; padding: 11px; margin-bottom: 10px; box-shadow: var(--sh);
}
.jc:last-child { margin-bottom: 0; }
.jc a { font-weight: 700; color: var(--tx); display: block; line-height: 1.3; margin-bottom: 3px; }
.jc a:hover { color: var(--ac); }
.tg { display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 600; background: var(--sf2); color: var(--mu); margin: 4px 4px 0 0; }
.tg.e { background: var(--ers); color: var(--er); }
.bar { height: 6px; background: var(--sf2); border-radius: 999px; overflow: hidden; margin-top: 9px; }
.bar i { display: block; height: 100%; background: var(--k, var(--ac)); border-radius: 999px; }
.jc-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--mu); }

/* Timeline */
.tl { overflow-x: auto; border: 1px solid var(--ln); border-radius: 12px; background: var(--sf); }
.gr { display: grid; grid-template-columns: 210px 1fr; border-bottom: 1px solid var(--ln); min-height: 44px; }
.gr:last-child { border-bottom: 0; }
.gr.h { background: var(--sf2); font-size: 12px; font-weight: 700; color: var(--mu); min-height: 36px; }
.glb { padding: 8px 12px; border-right: 1px solid var(--ln); }
.gtk { position: relative; min-height: 40px; }
.gl { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ln); }
.gmo { position: absolute; top: 9px; transform: translateX(6px); font-size: 11px; white-space: nowrap; }
.gtd { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--er); z-index: 2; opacity: 0.7; }
.gbb { position: absolute; top: 10px; height: 22px; background: var(--sf2); border: 1px solid var(--k, var(--ac)); border-radius: 6px; overflow: hidden; }
.gbb i { display: block; height: 100%; background: var(--k, var(--ac)); opacity: 0.35; }
.gbb span { position: absolute; left: 6px; top: 2px; font-size: 11px; font-weight: 700; }
.gdm { position: absolute; top: 14px; width: 13px; height: 13px; transform: translateX(-50%) rotate(45deg); background: var(--d, var(--ac)); border: 2px solid var(--sf); border-radius: 2px; padding: 0; z-index: 3; }
.gdm.late { background: var(--er); }
.gdm.done { opacity: 0.4; }

/* Calendar */
.cnav { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--ln); border-radius: 12px; overflow: hidden; }
.cal > div { border-right: 1px solid var(--ln); border-bottom: 1px solid var(--ln); min-height: 82px; padding: 6px; background: var(--sf); }
.cal > div.dh { min-height: 0; text-align: center; font-size: 12px; font-weight: 700; color: var(--mu); background: var(--sf2); padding: 8px; }
.cal > div.o { opacity: 0.45; background: var(--sf2); }
.cal > div.t { background: var(--acs); }
.cal .n { display: block; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.cev { display: block; width: 100%; text-align: left; border: 0; border-radius: 6px; padding: 2px 5px; margin-bottom: 3px; font-size: 11px; font-weight: 600; background: var(--sf2); color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid var(--c, var(--ac)); }
.cev.late { background: var(--ers); color: var(--er); }
.cev.done { opacity: 0.45; text-decoration: line-through; }

/* ---------- PENGUMUMAN & CHAT SPLIT-PANE ---------- */
.ann, .chat-wrap {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.al { max-height: calc(100vh - 180px); overflow-y: auto; }
.ai {
  display: block; width: 100%; text-align: left;
  background: var(--sf2); border: 1px solid var(--ln);
  border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; position: relative;
}
.ai.on { border-color: var(--ac); background: var(--acs); }
.ai.cl { opacity: 0.6; }
.ai .t { font-weight: 700; line-height: 1.3; margin-top: 5px; padding-right: 14px; }
.ai.nw::after { content: ""; position: absolute; right: 11px; top: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--er); }
.kom { padding: 10px 0; border-bottom: 1px solid var(--ln); }
.kom:last-of-type { border: 0; }
.isi { white-space: pre-wrap; line-height: 1.6; word-break: break-word; }

/* Chat Room */
.chat-list { max-height: calc(100vh - 190px); overflow-y: auto; padding: 12px; }
.chat-peer {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 9px 10px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; margin-bottom: 4px;
}
.chat-peer:hover { background: var(--sf2); }
.chat-peer.on { background: var(--acs); border-color: var(--ac); }
.chat-peer-info { min-width: 0; flex: 1; }
.chat-peer-info b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-peer-info small { display: block; font-size: 11.5px; color: var(--mu); }
.chat-box {
  display: flex; flex-direction: column;
  height: calc(100vh - 185px); min-height: 460px; padding: 0; overflow: hidden;
}
.chat-hd {
  padding: 14px 18px; border-bottom: 1px solid var(--ln);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.chat-msgs {
  flex: 1; overflow-y: auto; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg);
}
.msg-row { display: flex; align-items: flex-end; gap: 8px; max-width: 78%; }
.msg-row.me { align-self: flex-end; flex-direction: row-reverse; }
.bubble {
  background: var(--sf); border: 1px solid var(--ln);
  border-radius: 14px 14px 14px 4px; padding: 9px 13px;
  box-shadow: var(--sh);
}
.msg-row.me .bubble {
  background: var(--ac); color: var(--onac); border-color: transparent;
  border-radius: 14px 14px 4px 14px;
}
.bubble .m-who { font-size: 11px; font-weight: 700; color: var(--ac); margin-bottom: 2px; }
.msg-row.me .bubble .m-who { display: none; }
.bubble .m-txt { white-space: pre-wrap; word-break: break-word; line-height: 1.45; }
.bubble .m-tm { font-size: 10.5px; opacity: 0.7; margin-top: 4px; text-align: right; }
.chat-in {
  padding: 12px 14px; border-top: 1px solid var(--ln); background: var(--sf);
  display: flex; gap: 8px; align-items: center;
}
.chat-in input { flex: 1; }

/* Filter Bar */
.fbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.fbar input { max-width: 280px; }
.fbar select { max-width: 190px; }

/* Profile Modal Preview */
.prof-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--ln); }
.prof-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ---------- DIALOG & TOAST (SOLID TANPA BLUR) ---------- */
dialog {
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 36px);
  border: 1px solid var(--ln);
  border-radius: 16px;
  background: var(--sf);
  color: var(--tx);
  padding: 22px;
  box-shadow: var(--sh2);
  overflow-y: auto;
}
dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
}
#toast {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  background: var(--tx);
  color: var(--sf);
  padding: 11px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13.5px;
  box-shadow: var(--sh2);
  max-width: 360px;
}

/* Loading & Progress */
.sk { position: relative; overflow: hidden; background: var(--sf2); border-radius: 12px; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent); animation: shim 1.3s infinite; }
@keyframes shim { to { transform: translateX(100%); } }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--ln2); border-top-color: var(--ac); border-radius: 50%; animation: rot .7s linear infinite; vertical-align: -2px; }
@keyframes rot { to { transform: rotate(360deg); } }
.pg { height: 8px; background: var(--sf2); border-radius: 999px; overflow: hidden; }
.pg i { display: block; height: 100%; width: 0; background: var(--ac); border-radius: 999px; transition: width .15s; }

/* Mobile Menu Toggle */
.mob-menu { display: none; }

@media (max-width: 1060px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  aside {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 50; width: 256px;
    transform: translateX(-100%); transition: transform 0.2s;
    box-shadow: var(--sh2);
  }
  aside.open { transform: translateX(0); }
  .mob-menu { display: inline-flex; }
  .g2, .g3, .ann, .chat-wrap { grid-template-columns: 1fr; }
  .al, .chat-list { max-height: 260px; }
  .chat-box { height: 480px; }
  .top { padding: 10px 14px; }
  main { padding: 16px 14px 32px; }
  .user-meta { display: none; }
}
@media (max-width: 520px) {
  .kpis { grid-template-columns: 1fr; }
}
/* Official Logo Image Styling */
.brand-logo-img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: inherit; }
.login-brand .logo-box, .brand-ico, .av-logo { background: #ffffff !important; border: 1px solid var(--ln); padding: 3px; overflow: hidden; }
/* ---------- CHECKLIST DOKUMEN ---------- */
.dcl-grp { margin-bottom: 16px; }
.dcl-grp:last-child { margin-bottom: 0; }
.dcl-grp-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: var(--sf2); border: 1px solid var(--ln);
  border-radius: 10px; margin-bottom: 8px; font-weight: 700; font-size: 13px;
}
.dcl-item {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--ln); border-radius: 10px;
  background: var(--sf); margin-bottom: 6px; transition: border-color 0.14s, background 0.14s;
}
.dcl-item:hover { border-color: var(--ln2); }
.dcl-item.done { background: var(--sf2); }
.dcl-left { display: flex; align-items: flex-start; gap: 10px; flex: 1; min-width: 0; cursor: pointer; margin: 0; }
.dcl-left input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--ac); cursor: pointer; }
.dcl-title { font-weight: 600; color: var(--tx); line-height: 1.4; word-break: break-word; }
.dcl-item.done .dcl-title { text-decoration: line-through; opacity: 0.65; }
.dcl-meta { font-size: 12px; color: var(--mu); margin-top: 2px; }

/* ---------- PRINT PDF BUKTI FISIK ---------- */
#print-area { display: none; }
@media print {
  @page { size: A4 portrait; margin: 14mm 15mm; }
  body { background: #ffffff !important; color: #111111 !important; font-size: 11px; line-height: 1.45; }
  .wp, #app, dialog, #toast { display: none !important; }
  #print-area { display: block !important; color: #111111; }
  .pr-head { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid #111111; padding-bottom: 10px; margin-bottom: 12px; }
  .pr-logo { width: 52px; height: 52px; object-fit: contain; }
  .pr-title h1 { font-size: 15px; margin: 0 0 2px; letter-spacing: 0.02em; text-transform: uppercase; color: #111111; }
  .pr-title p { margin: 0; font-size: 11px; color: #444444; }
  .pr-info { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-size: 11px; }
  .pr-info td { padding: 3px 6px; border: 0; vertical-align: top; }
  .pr-info td.lbl { width: 140px; font-weight: 700; color: #333333; }
  .pr-tbl { width: 100%; border-collapse: collapse; font-size: 10.5px; margin-bottom: 18px; }
  .pr-tbl th, .pr-tbl td { border: 1px solid #333333; padding: 6px 7px; text-align: left; vertical-align: top; }
  .pr-tbl th { background: #eeeeee !important; font-weight: 700; color: #111111; text-transform: uppercase; font-size: 10px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pr-chk { text-align: center !important; font-weight: 700; white-space: nowrap; }
  .pr-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 24px; page-break-inside: avoid; }
  .pr-sign-box { text-align: center; font-size: 11px; }
  .pr-sign-line { margin-top: 56px; border-bottom: 1px solid #111111; display: inline-block; min-width: 190px; padding-bottom: 2px; font-weight: 700; }
  .pr-foot { margin-top: 16px; font-size: 9.5px; color: #555555; border-top: 1px solid #cccccc; padding-top: 6px; display: flex; justify-content: space-between; }
}
