:root {
  --hkd-navy: #0f3a5f;
  --hkd-bg: #e9eef4;
  --hkd-card: #ffffff;
  --hkd-line: #d5dee8;
  --hkd-line-2: #e2e8f0;
  --hkd-line-3: #eef2f6;
  --hkd-text: #0f172a;
  --hkd-text-2: #334155;
  --hkd-muted: #64748b;
  --hkd-blue: #2563eb;
  --hkd-blue-d: #1d4ed8;
  --hkd-sel: #eff6ff;
}
.hkd *, .hkd *::before, .hkd *::after { box-sizing: border-box; }
html, body.hkd { margin: 0; height: 100%; }
body.hkd {
  background: var(--hkd-bg);
  color: var(--hkd-text);
  font-family: 'Public Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-feature-settings: 'tnum' 1;
  -webkit-font-smoothing: antialiased;
}
.hkd a { color: inherit; text-decoration: none; }
.hkd button { font-family: inherit; }
.hkd-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hkd-num { font-variant-numeric: tabular-nums; text-align: right; }

.hkd-root { height: 100vh; height: 100dvh; min-height: 720px; display: flex; flex-direction: column; }
.hkd-body { flex: 1 1 auto; min-height: 0; padding: 12px; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; }
.hkd-main { display: grid; grid-template-columns: clamp(300px, 23vw, 400px) minmax(0, 1fr) clamp(310px, 24vw, 420px); gap: 12px; min-height: 0; }
.hkd-col { display: flex; flex-direction: column; gap: 12px; min-height: 0; min-width: 0; }
.hkd-bottom { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 12px; }

.hkd-nav {
  height: 64px; flex: none; background: #fff; border-bottom: 1px solid var(--hkd-line-2);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px;
  position: relative; z-index: 1100;
}
.hkd-nav-kiri { display: flex; align-items: center; gap: 22px; min-width: 0; }
.hkd-menu { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 14px; font-weight: 500; }
.hkd-menu > li { position: relative; }
.hkd-menu > li > a, .hkd-menu > li > button {
  display: flex; align-items: center; gap: 4px; padding: 21px 0 19px; color: var(--hkd-text-2);
  border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; cursor: pointer;
}
.hkd-menu > li > a:hover, .hkd-menu > li > button:hover { color: var(--hkd-blue); }
.hkd-menu > li > a.aktif { color: var(--hkd-blue); font-weight: 700; border-bottom-color: var(--hkd-blue); }
.hkd-dd-panel {
  position: absolute; left: -12px; top: 100%; min-width: 210px; padding: 6px; display: none;
  background: #fff; border: 1px solid var(--hkd-line-2); border-radius: 12px; box-shadow: 0 12px 30px rgba(15, 23, 42, .14);
}
.hkd-dd:hover .hkd-dd-panel, .hkd-dd:focus-within .hkd-dd-panel, .hkd-dd.buka .hkd-dd-panel { display: block; }
.hkd-dd-panel a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 13.5px; color: var(--hkd-text-2); }
.hkd-dd-panel a:hover, .hkd-dd-panel a:focus-visible { background: var(--hkd-sel); color: var(--hkd-blue); }
.hkd-burger {
  display: none; width: 40px; height: 40px; border-radius: 8px; border: 1px solid #d9e2ec; background: #fff;
  align-items: center; justify-content: center; color: var(--hkd-text-2); cursor: pointer;
}
.hkd-nav-kanan { display: flex; align-items: center; gap: 18px; min-width: 0; }
.hkd-fs {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; flex: none;
  border-radius: 8px; border: 1px solid #c9d6e3; background: #fff; color: var(--hkd-navy);
  font-size: 12.5px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.hkd-fs svg { width: 16px; height: 16px; flex: none; }
.hkd-fs:hover { background: var(--hkd-sel); border-color: #9fbbd8; color: var(--hkd-blue-d); }
.hkd-fs:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.hkd-fs[aria-pressed="true"] { background: var(--hkd-navy); border-color: var(--hkd-navy); color: #fff; }
.hkd-fs[aria-pressed="true"]:hover { background: #0b2c48; color: #fff; }
.hkd-fs[hidden] { display: none; }
.hkd-jam { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--hkd-text-2); font-weight: 600; white-space: nowrap; }
.hkd-live {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; letter-spacing: .08em;
  color: #047857; background: #d1fae5; padding: 3px 8px; border-radius: 999px;
}
.hkd-live i { width: 6px; height: 6px; border-radius: 50%; background: #059669; animation: hkd-kedip 1.6s ease-in-out infinite; }
.hkd-live.gagal { color: #9a3412; background: #ffedd5; }
.hkd-live.gagal i { background: #ea580c; }
.hkd-id { display: flex; align-items: center; gap: 10px; color: var(--hkd-text); padding-right: 20px; border-right: 1px solid var(--hkd-line-2); flex: none; }
.hkd-id img { width: 46px; height: 46px; object-fit: contain; border-radius: 6px; flex: none; }
.hkd-id-teks { display: flex; flex-direction: column; line-height: 1.22; white-space: nowrap; }
.hkd-id-teks b { font-size: 12.5px; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; }
.hkd-id-teks span { font-size: 10.5px; font-weight: 600; color: var(--hkd-text-2); }
.hkd-id-teks span.hl { font-weight: 800; color: var(--hkd-navy); }

.hkd-card {
  background: var(--hkd-card); border: 1px solid var(--hkd-line); border-radius: 12px;
  display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 14px rgba(15, 23, 42, .05);
}
.hkd-col > .hkd-card { flex: 1 1 0; }
.hkd-kh { background: var(--hkd-navy); color: #fff; padding: 7px 12px; display: flex; align-items: center; gap: 9px; flex: none; }
.hkd-kh h2 { margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; flex: 1 1 auto; }
.hkd-kh h2 small { font-weight: 600; opacity: .8; font-size: 10.5px; letter-spacing: .02em; text-transform: none; }
.hkd-kh .hkd-chip-terang { font-size: 10.5px; font-weight: 700; background: rgba(255, 255, 255, .16); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.hkd-ikon { width: 24px; height: 24px; border-radius: 7px; background: rgba(255, 255, 255, .14); display: flex; align-items: center; justify-content: center; flex: none; }
.hkd-ikon.terang { background: #e0ecf8; color: var(--hkd-navy); }
.hkd-ikon svg { width: 15px; height: 15px; }

.hkd-seg { display: flex; gap: 3px; background: var(--hkd-line-3); border-radius: 8px; padding: 3px; }
.hkd-seg button {
  flex: 1 1 0; border: 0; border-radius: 6px; padding: 5px 10px; font-size: 12px; font-weight: 600;
  cursor: pointer; background: transparent; color: #475569; white-space: nowrap;
}
.hkd-seg button[aria-pressed="true"] { background: #fff; color: var(--hkd-text); font-weight: 700; box-shadow: 0 1px 2px rgba(15, 23, 42, .14); }
.hkd-seg button:focus-visible { outline: 2px solid var(--hkd-blue); outline-offset: 1px; }
.hkd-seg.kecil button { flex: none; padding: 5px 12px; }
.hkd-tab-wrap { padding: 7px 12px 6px; flex: none; }

.hkd-tabel { flex: 1 1 auto; min-height: 0; overflow: auto; border-top: 1px solid var(--hkd-line-2); }
.hkd-r {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) 52px 78px; align-items: center; column-gap: 8px;
  padding: 0 12px; border-bottom: 1px solid var(--hkd-line-3); height: 34px;
}
.hkd-r.tma { grid-template-columns: 22px minmax(0, 1fr) 62px 66px; }
.hkd-int { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 10.5px; font-weight: 700; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hkd-int i { width: 7px; height: 7px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(15, 23, 42, .08); }
.hkd-int.nol { color: var(--hkd-muted); font-weight: 600; }
.hkd-int.nol i { background: #cbd5e1 !important; }
.hkd-int.kosong { color: #94a3b8; }
.hkd-th {
  background: #f6f8fb; color: var(--hkd-muted); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  height: 23px; min-height: 23px; border-bottom: 1px solid var(--hkd-line-2); position: sticky; top: 0; z-index: 1;
}
.hkd-th .kanan { text-align: right; }
.hkd-th .hkd-satuan { text-transform: none; letter-spacing: 0; }
.hkd-r.pilih { background-color: var(--hkd-sel) !important; box-shadow: inset 3px 0 0 var(--hkd-blue); }
.hkd-r.mati { background-color: #fafbfc; }
.hkd-nama {
  all: unset; cursor: pointer; font-weight: 700; font-size: 12.5px; line-height: 16px; color: var(--hkd-text); display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.hkd-nama:hover { color: var(--hkd-blue-d); text-decoration: underline; }
.hkd-nama:focus-visible { outline: 2px solid var(--hkd-blue); outline-offset: 2px; border-radius: 3px; }
.hkd-sub { font-size: 10.5px; line-height: 13px; color: var(--hkd-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hkd-sub.warn { color: #b45309; }
.hkd-val { display: inline-block; min-width: 44px; padding: 3px 6px; border-radius: 5px; font-weight: 800; font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }
.hkd-rank { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; color: var(--hkd-muted); font-size: 11px; font-weight: 700; }
.hkd-rank.top { border-radius: 50%; background: var(--hkd-navy); color: #fff; font-size: 10.5px; font-weight: 800; }
.hkd-tma-sel { display: flex; flex-direction: column; align-items: flex-end; }
.hkd-tma-sel b { font-size: 13px; font-weight: 800; line-height: 16px; }
.hkd-tren { display: inline-flex; align-items: center; gap: 2px; font-size: 9.5px; line-height: 12px; font-weight: 700; color: var(--hkd-muted); }
.hkd-tren.naik { color: #b91c1c; }
.hkd-tren.turun { color: var(--hkd-blue-d); }
.hkd-tren svg { width: 8px; height: 8px; }
.hkd-debit { font-size: 12.5px; font-weight: 700; }
.hkd-kaki { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 12px; border-top: 1px solid var(--hkd-line-2); flex: none; }
.hkd-info { font-size: 11px; color: var(--hkd-muted); display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; }
.hkd-info .hkd-badge { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hkd-badge { font-size: 9.5px; font-weight: 700; color: #92400e; background: #fef3c7; padding: 2px 6px; border-radius: 999px; white-space: nowrap; }
.hkd-badge.abu { color: #475569; background: #f1f5f9; }
.hkd-pg { display: flex; gap: 4px; flex: none; }
.hkd-pg button {
  all: unset; box-sizing: border-box; cursor: pointer; min-width: 24px; height: 24px; padding: 0 4px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; text-align: center; line-height: 22px; color: var(--hkd-text-2); border: 1px solid #d9e2ec; background: #fff;
}
.hkd-pg button[aria-current="page"] { background: var(--hkd-navy); color: #fff; border-color: var(--hkd-navy); }
.hkd-pg button:disabled { opacity: .4; cursor: default; }
.hkd-pg button:focus-visible { outline: 2px solid var(--hkd-blue); outline-offset: 1px; }
.hkd-kosong { padding: 18px 12px; font-size: 12px; color: var(--hkd-muted); text-align: center; line-height: 1.5; }

.hkd-mh { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 12px; border-bottom: 1px solid var(--hkd-line-2); flex: none; flex-wrap: wrap; }
.hkd-mh-judul { display: flex; align-items: center; gap: 9px; }
.hkd-mh h2 { margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--hkd-navy); }
.hkd-mh-alat { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hkd-cek { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--hkd-text-2); cursor: pointer; white-space: nowrap; }
.hkd-cek input { accent-color: var(--hkd-blue); width: 15px; height: 15px; margin: 0; }
.hkd-peta-wrap { position: relative; flex: 1 1 auto; min-height: 0; }
#hkd-peta { position: absolute; inset: 0; background: #cfe3f0; font-family: inherit; }
.hkd-peta-pesan { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12.5px; color: var(--hkd-muted); text-align: center; padding: 20px; }

.hkd-pin-wrap, .hkd-cluster-wrap { background: none !important; border: 0 !important; }
.hkd-pin {
  width: 30px; height: 30px; border-radius: 50% 50% 50% 0; position: absolute; left: 50%; top: 50%; margin: -19px 0 0 -15px;
  transform: rotate(-45deg); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .3); border: 2px solid #fff; transition: transform .15s;
}
.hkd-pin i { transform: rotate(45deg); color: #fff; font-size: 12px; }
.hkd-pin.mati { filter: grayscale(.85); opacity: .6; }
.hkd-pin.pilih { transform: rotate(-45deg) scale(1.25); box-shadow: 0 0 0 3px var(--hkd-navy), 0 4px 14px rgba(0, 0, 0, .4); }
.hkd-cluster {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative;
  color: #fff; font-weight: 800; font-size: 12px; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
}
.hkd-denyut { position: absolute; left: 50%; top: 12px; width: 16px; height: 16px; border-radius: 50%; pointer-events: none; animation: hkd-denyut 2.2s ease-out infinite; }
.hkd-denyut.besar { top: 50%; width: 30px; height: 30px; }
.hkd-label-wrap { background: none !important; border: 0 !important; }
.hkd-label {
  display: inline-block; font-size: 10px; font-weight: 800; color: #fff; background: var(--hkd-navy); padding: 2px 6px;
  border-radius: 5px; white-space: nowrap; box-shadow: 0 1px 3px rgba(15, 23, 42, .3); pointer-events: none;
}
.hkd-peta-pesan {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 800; max-width: 80%;
  background: rgba(255, 255, 255, .96); border: 1px solid #c3d3e2; border-radius: 10px; padding: 10px 16px;
  font-size: 13px; font-weight: 700; color: #0f2a44; text-align: center; box-shadow: 0 4px 14px rgba(15, 23, 42, .14); pointer-events: none;
}
.hkd-peta-pesan[hidden] { display: none; }
.hkd-legenda {
  width: 150px; background: rgba(255, 255, 255, .96); border: 1px solid #c3d3e2; border-radius: 10px; padding: 8px 10px;
  display: flex; flex-direction: column; gap: 5px; box-shadow: 0 4px 14px rgba(15, 23, 42, .12); font-family: inherit;
}
.hkd-legenda h3 { margin: 0; font-size: 10px; font-weight: 800; color: var(--hkd-navy); letter-spacing: .06em; text-transform: uppercase; }
.hkd-leg-baris { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: #475569; }
.hkd-leg-baris b { color: var(--hkd-text); font-weight: 800; font-variant-numeric: tabular-nums; }
.hkd-leg-baris span { display: flex; align-items: center; gap: 6px; }
.hkd-leg-baris.total { border-top: 1px solid var(--hkd-line-2); padding-top: 4px; font-weight: 700; }
.hkd-leg-pin { width: 11px; height: 11px; flex: none; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, .25); }
.hkd-leg-pin.kosong { background: transparent; box-shadow: none; border: 0; }

.hkd-popup .leaflet-popup-content-wrapper { border-radius: 10px; padding: 0; overflow: hidden; box-shadow: 0 12px 30px rgba(15, 23, 42, .30); }
.hkd-popup .leaflet-popup-content { margin: 0; width: 264px !important; font-family: 'Public Sans', ui-sans-serif, system-ui, sans-serif; line-height: 1.35; }
.hkd-popup a.leaflet-popup-close-button { top: 8px; right: 8px; width: 24px; height: 24px; font-size: 18px; line-height: 22px; border-radius: 6px; background: #f1f5f9; color: var(--hkd-text-2); }
.hkd-pop-kepala { padding: 10px 40px 6px 12px; border-top: 3px solid var(--hkd-navy); }
.hkd-pop-chip { display: flex; gap: 4px; margin-bottom: 4px; flex-wrap: wrap; }
.hkd-pop-nama { font-size: 13.5px; font-weight: 800; color: var(--hkd-text); line-height: 1.25; }
.hkd-pop-isi { padding: 0 12px 10px; }
.hkd-popup a.hkd-pop-detail {
  display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0 12px 12px; padding: 8px 12px;
  background: #2563eb; color: #fff; font-size: 12px; font-weight: 700; border-radius: 6px; text-decoration: none; transition: background .15s;
}
.hkd-popup a.hkd-pop-detail:hover { background: #1d4ed8; color: #fff; }
.hkd-popup a.hkd-pop-detail:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.hkd-popup a.hkd-pop-detail i { font-size: 12px; }
.hkd-pop-baris { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 0; border-top: 1px dashed var(--hkd-line-2); font-size: 11.5px; }
.hkd-pop-baris > span:first-child { color: var(--hkd-muted); white-space: nowrap; }
.hkd-pop-baris > b { font-weight: 700; color: var(--hkd-text); text-align: right; }
.hkd-pop-baris > b.warn { color: #b45309; }
.hkd-das-pop { min-width: 230px; }
.hkd-das-kepala { padding: 10px 40px 8px 14px; background: #f8fafc; border-bottom: 1px solid var(--hkd-line-2); }
.hkd-das-kepala small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--hkd-muted); }
.hkd-das-kepala b { font-size: 13.5px; font-weight: 800; color: var(--hkd-text); }
.hkd-das-isi { display: flex; justify-content: space-between; gap: 8px; padding: 9px 14px 11px; font-size: 11.5px; }
.hkd-das-isi span { color: var(--hkd-muted); }
.hkd-das-isi b { font-weight: 700; text-align: right; }
.hkd-chip { font-size: 9.5px; font-weight: 800; color: #fff; padding: 2px 6px; border-radius: 999px; white-space: nowrap; }
.hkd-chip.abu { color: #475569; background: #f1f5f9; font-weight: 700; }
.hkd-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }

.hkd-det-info { padding: 9px 14px 8px; flex: none; border-bottom: 1px solid var(--hkd-line-3); }
.hkd-det-chip { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; flex-wrap: wrap; }
.hkd-det-nama { font-size: 15px; font-weight: 800; color: var(--hkd-text); line-height: 1.25; }
.hkd-det-lok { font-size: 11px; color: var(--hkd-muted); }
.hkd-det-info .hkd-seg { margin-top: 7px; }
.hkd-stat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 8px 12px; flex: none; }
.hkd-stat > div { background: #f6f9fc; border: 1px solid var(--hkd-line-2); border-radius: 9px; padding: 6px 8px; min-width: 0; }
.hkd-stat > div.utama { background: var(--hkd-sel); border-color: #bfdbfe; }
.hkd-stat small { display: block; font-size: 9.5px; font-weight: 700; color: var(--hkd-muted); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hkd-stat b { display: block; font-size: 15px; font-weight: 800; line-height: 1.3; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hkd-stat span { display: block; font-size: 10px; color: var(--hkd-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hkd-grafik { padding: 0 12px 6px; flex: none; display: flex; gap: 6px; height: 118px; }
.hkd-sumbu-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 9.5px; color: #94a3b8; padding-bottom: 16px; width: 28px; text-align: right; font-variant-numeric: tabular-nums; }
.hkd-plot-wrap { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.hkd-plot {
  flex: 1 1 auto; position: relative; border-left: 1px solid var(--hkd-line-2); border-bottom: 1px solid #cbd5e1;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(50% - 1px), #f1f5f9 calc(50% - 1px), #f1f5f9 50%);
}
.hkd-batang { position: absolute; inset: 0 2px; display: flex; align-items: flex-end; gap: 4px; }
.hkd-batang > div { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.hkd-batang span { font-size: 9px; font-weight: 700; color: var(--hkd-text-2); line-height: 1.2; font-variant-numeric: tabular-nums; }
.hkd-batang i { display: block; width: 100%; border-radius: 4px 4px 0 0; }
.hkd-batang i.kosong { height: 3px !important; background: repeating-linear-gradient(90deg, #cbd5e1 0 3px, transparent 3px 6px) !important; border-radius: 0; }
.hkd-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hkd-titik { position: absolute; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #fff; transform: translate(-50%, -50%); box-sizing: content-box; }
.hkd-sumbu-x { display: flex; gap: 4px; padding: 3px 2px 0; }
.hkd-sumbu-x span { flex: 1 1 0; min-width: 0; text-align: center; font-size: 9.5px; color: var(--hkd-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.hkd-rd { display: grid; grid-template-columns: 116px 64px minmax(0, 1fr); align-items: center; column-gap: 8px; padding: 0 12px; min-height: 23px; border-bottom: 1px solid #f1f5f9; font-size: 11.5px; }
.hkd-rd.tma { grid-template-columns: 116px minmax(0, 1fr) 56px minmax(0, 1.2fr); }
.hkd-rd .kanan, .hkd-r .kanan { text-align: right; }
.hkd-rd .tgl { font-weight: 600; color: var(--hkd-text-2); white-space: nowrap; }
.hkd-rd .ket { color: var(--hkd-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hkd-rd.maks-ch { background: #fff7ed; }
.hkd-rd.maks-tma { background: var(--hkd-sel); }
.hkd-catatan { padding: 6px 12px 8px; font-size: 10px; color: var(--hkd-muted); border-top: 1px solid var(--hkd-line-3); flex: none; line-height: 1.4; }

.hkd-wx-kepala { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px 4px; flex-wrap: wrap; }
.hkd-wx-kepala > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hkd-wx-kepala h2 { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--hkd-navy); }
.hkd-wx-slot { font-size: 10.5px; font-weight: 600; color: #0369a1; background: #e0f2fe; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.hkd-sumber { font-size: 10.5px; color: var(--hkd-muted); white-space: nowrap; }
.hkd-sumber a { color: #0369a1; font-weight: 600; }
/* Pita prakiraan cuaca 19 kabupaten/kota — berjalan terus dari kanan ke kiri */
.hkd-wx {
  position: relative; overflow: hidden; padding: 4px 0 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}
.hkd-wx-trek { display: flex; width: max-content; animation: hkd-jalan 60s linear infinite; will-change: transform; }
.hkd-wx:hover .hkd-wx-trek, .hkd-wx:focus-within .hkd-wx-trek { animation-play-state: paused; }
.hkd-wx-set { display: flex; gap: 6px; padding-right: 6px; flex: none; }
@keyframes hkd-jalan { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hkd-wx-kota { display: flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 9px; background: #f6f9fc; border: 1px solid #e6edf4; flex: none; min-width: 150px; }
.hkd-wx-ikon { width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.hkd-wx-ikon svg { width: 36px; height: 36px; display: block; }
.hkd-wx-kota.hujan-ringan { background: #e0f2fe; border-color: #7dd3fc; }
.hkd-wx-kota.hujan-lokal { background: #cffafe; border-color: #67e8f9; }
.hkd-wx-kota.hujan-sedang { background: #bfdbfe; border-color: #60a5fa; }
.hkd-wx-kota.hujan-lebat { background: linear-gradient(135deg, #1e3a8a, #2563eb); border-color: #1e40af; }
.hkd-wx-kota.hujan-petir { background: linear-gradient(135deg, #312e81, #6d28d9); border-color: #4c1d95; }
.hkd-wx-kota.hujan-lebat .hkd-wx-ikon, .hkd-wx-kota.hujan-petir .hkd-wx-ikon { background: rgba(255, 255, 255, .22); }
.hkd-wx-kota.hujan-lebat .hkd-wx-teks small, .hkd-wx-kota.hujan-petir .hkd-wx-teks small { color: #e0e7ff; }
.hkd-wx-kota.hujan-lebat .hkd-wx-teks b, .hkd-wx-kota.hujan-petir .hkd-wx-teks b { color: #fff; }
.hkd-wx-kota.hujan-lebat .hkd-wx-teks span, .hkd-wx-kota.hujan-petir .hkd-wx-teks span { color: #dbeafe; }
.hkd-wx-kota.hujan-sedang .hkd-wx-teks span, .hkd-wx-kota.hujan-ringan .hkd-wx-teks span, .hkd-wx-kota.hujan-lokal .hkd-wx-teks span { color: #0c4a6e; font-weight: 600; }
.hkd-wx-teks { min-width: 0; }
.hkd-wx-teks small { display: block; font-size: 9.5px; line-height: 12px; font-weight: 800; letter-spacing: .02em; color: var(--hkd-text-2); text-transform: uppercase; white-space: nowrap; }
.hkd-wx-teks b { display: block; font-size: 16px; line-height: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hkd-wx-teks span { display: block; font-size: 10px; line-height: 12px; color: #475569; white-space: nowrap; }

.hkd-warn {
  background: #fffbeb; border: 1px solid #f6cf62; border-radius: 12px; padding: 10px 14px; display: flex; align-items: center; gap: 12px;
  min-width: 0; box-shadow: 0 4px 14px rgba(146, 64, 14, .06);
}
.hkd-warn-ikon { width: 40px; height: 40px; border-radius: 10px; background: #f59e0b; display: flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.hkd-warn-ikon svg { width: 22px; height: 22px; }
.hkd-warn-isi { flex: 1 1 auto; min-width: 0; }
.hkd-warn-judul { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 3px; }
.hkd-warn h2 { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #78350f; }
.hkd-warn-waktu { font-size: 10px; font-weight: 700; color: #92400e; background: #fde68a; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.hkd-warn-sumber { margin-left: auto; font-size: 10.5px; font-weight: 700; color: #92400e; white-space: nowrap; }
.hkd-warn p {
  margin: 0; font-size: 11.5px; line-height: 1.45; color: #451a03;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hkd-warn.aman { background: #f0fdf4; border-color: #bbf7d0; box-shadow: none; }
.hkd-warn.aman .hkd-warn-ikon { background: #16a34a; }
.hkd-warn.aman h2 { color: #14532d; }
.hkd-warn.aman p { color: #14532d; }
.hkd-warn.aman .hkd-warn-sumber { color: #166534; }

.hkd-foot {
  flex: none; min-height: 26px; display: flex; align-items: center; padding: 4px 20px;
  background: #fff; border-top: 1px solid var(--hkd-line-2); font-size: 10.5px; color: #475569;
}
.hkd-foot strong { color: var(--hkd-text); margin-right: 4px; }

.hkd-cctv { flex: none; border-top: 1px solid var(--hkd-line-2); padding: 7px 12px 7px; background: #f8fafc; }
.hkd-cctv[hidden] { display: none; }
.hkd-cctv-kepala { display: flex; align-items: center; gap: 7px; min-width: 0; }
.hkd-cctv-ket { margin-left: auto; font-size: 10.5px; font-weight: 600; color: var(--hkd-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hkd-cctv-kepala b { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--hkd-navy); white-space: nowrap; }
.hkd-cctv-ikon { width: 20px; height: 20px; border-radius: 6px; background: var(--hkd-navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.hkd-cctv-ikon svg { width: 13px; height: 13px; }
.hkd-cctv-waktu { margin-left: auto; font-size: 10.5px; font-weight: 600; white-space: nowrap; flex: none; }
.hkd-cctv-layar {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; max-height: clamp(96px, calc(100vh - 800px), 210px);
  padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: #0f172a; cursor: zoom-in; font: inherit;
}
.hkd-cctv-gambar { position: absolute; inset: 0; display: block; }
.hkd-cctv-gambar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hkd-cctv-layar:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.hkd-cctv-nama {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 9px 5px; display: flex; align-items: center; gap: 8px;
  background: linear-gradient(transparent, rgba(2, 6, 23, .82)); color: #fff; font-size: 11.5px; font-weight: 700; text-align: left;
}
.hkd-cctv-nama-teks { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hkd-cctv-nama .hkd-cctv-waktu { color: #e2e8f0; font-size: 10.5px; }
.hkd-cctv-nama .hkd-cctv-waktu.warn { color: #fcd34d; }
.hkd-cctv-label {
  position: absolute; top: 6px; left: 6px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 7px;
  border-radius: 999px; background: rgba(2, 6, 23, .62); color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
}
.hkd-cctv-rec { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .28); animation: hkd-kedip 1.6s ease-in-out infinite; flex: none; }
.hkd-cctv-perbesar { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 6px; background: rgba(2, 6, 23, .55); color: #fff; display: flex; align-items: center; justify-content: center; }
.hkd-cctv-perbesar svg { width: 14px; height: 14px; }
.hkd-cctv-layar:hover .hkd-cctv-perbesar { background: rgba(37, 99, 235, .92); }
.hkd-cctv-pesan { position: absolute; inset: 0 0 24px; display: none; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; color: #cbd5e1; font-size: 11.5px; font-weight: 600; text-align: center; }
.memuat > .hkd-cctv-pesan, .gagal > .hkd-cctv-pesan { display: flex; }
.hkd-cctv-putar { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(203, 213, 225, .3); border-top-color: #e2e8f0; animation: hkd-putar .9s linear infinite; flex: none; }
.gagal .hkd-cctv-putar { display: none; }
@keyframes hkd-putar { to { transform: rotate(360deg); } }
.hkd-cctv-chips { display: flex; gap: 5px; overflow-x: auto; margin-top: 6px; padding-bottom: 2px; scrollbar-width: thin; }
.hkd-cctv-chip { flex: none; border: 1px solid #c9d6e3; background: #fff; color: var(--hkd-navy); font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 2px 9px; white-space: nowrap; cursor: pointer; }
.hkd-cctv-chip:hover { background: var(--hkd-sel); border-color: #9fbbd8; color: var(--hkd-blue-d); }
.hkd-cctv-chip:focus-visible { outline: 3px solid #93c5fd; outline-offset: 1px; }
.hkd-cctv-lain { margin-top: 4px; font-size: 10.5px; color: var(--hkd-muted); display: flex; gap: 8px; flex-wrap: wrap; }

.hkd-card.ada-cctv .hkd-grafik { height: 82px; }
.hkd-card.ada-cctv .hkd-catatan { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hkd-cctv-besar { position: fixed; inset: 0; z-index: 3000; background: rgba(2, 6, 23, .84); display: flex; align-items: center; justify-content: center; padding: 24px; }
.hkd-cctv-besar[hidden] { display: none; }
.hkd-cctv-besar-isi { margin: 0; width: min(1200px, 100%); background: #0b1220; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.hkd-cctv-besar-kepala { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; color: #fff; }
.hkd-cctv-besar-kepala b { font-size: 14px; font-weight: 800; }
.hkd-cctv-besar-kepala .hkd-cctv-ikon { background: rgba(255, 255, 255, .14); }
.hkd-cctv-besar-kepala .hkd-cctv-waktu { color: #cbd5e1; font-size: 12px; margin-left: auto; }
.hkd-cctv-besar-kepala .hkd-cctv-waktu.warn { color: #fcd34d; }
.hkd-cctv-tutup { width: 34px; height: 34px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; flex: none; }
.hkd-cctv-tutup:hover { background: rgba(255, 255, 255, .24); }
.hkd-cctv-tutup:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.hkd-cctv-besar-layar { position: relative; aspect-ratio: 16 / 9; max-height: calc(100vh - 150px); background: #000; }
.hkd-cctv-besar-layar .hkd-cctv-gambar img { object-fit: contain; }
.hkd-cctv-besar-layar > .hkd-cctv-pesan { inset: 0; font-size: 13px; }
.hkd-cctv-besar-isi figcaption { padding: 8px 14px 10px; font-size: 11.5px; color: #94a3b8; }
.hkd-cctv-besar-isi figcaption a { color: #93c5fd; text-decoration: underline; }
@keyframes hkd-denyut { 0% { transform: translate(-50%, -50%) scale(1); opacity: .55; } 100% { transform: translate(-50%, -50%) scale(3.4); opacity: 0; } }
@keyframes hkd-kedip { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .hkd-denyut, .hkd-live i, .hkd-cctv-rec, .hkd-cctv-putar { animation: none; }
  /* Pita cuaca tidak berjalan: dapat digeser manual */
  .hkd-wx { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding-left: 10px; padding-right: 10px; }
  .hkd-wx-trek { animation: none; }
  .hkd-wx-set[aria-hidden="true"] { display: none; }
}

@media (max-height: 820px) and (min-width: 1101px) {
  .hkd-cctv-layar { max-height: 96px; }
  .hkd-cctv { padding: 5px 12px 7px; }
  .hkd-body { padding: 10px; gap: 10px; }
  .hkd-main, .hkd-col { gap: 10px; }
  .hkd-grafik { height: 96px; }
  .hkd-stat { padding: 6px 12px; }
  .hkd-stat b { font-size: 14px; }
  .hkd-det-info { padding: 7px 14px 6px; }
  .hkd-rd { min-height: 21px; }
  .hkd-tab-wrap { padding: 6px 12px 5px; }
}
@media (max-width: 1360px) {
  .hkd-jam .hkd-tgl-panjang { display: none; }
  .hkd-fs { padding: 0; width: 36px; justify-content: center; }
  .hkd-fs .hkd-fs-teks { display: none; }
}
@media (max-width: 1240px) {
  .hkd-menu { gap: 18px; }
  .hkd-jam { display: none; }
}
@media (max-width: 1100px) {
  .hkd-cctv-layar { max-height: 260px; }
  .hkd-root { height: auto; min-height: 0; }
  .hkd-body { display: flex; flex-direction: column; }
  .hkd-main, .hkd-bottom { grid-template-columns: minmax(0, 1fr); }
  .hkd-col > .hkd-card { flex: none; }
  .hkd-tabel { overflow: visible; }
  .hkd-peta-wrap { flex: none; height: 460px; }
  .hkd-burger { display: flex; }
  .hkd-id { padding-right: 0; border-right: 0; }
  .hkd-menu {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--hkd-line-2); box-shadow: 0 12px 24px rgba(15, 23, 42, .12); padding: 6px 16px 12px;
  }
  .hkd-menu.buka { display: flex; }
  .hkd-menu > li > a, .hkd-menu > li > button { padding: 12px 4px; border-bottom: 1px solid var(--hkd-line-3); width: 100%; }
  .hkd-menu > li > a.aktif { border-bottom-color: var(--hkd-line-3); }
  .hkd-dd-panel { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 6px 12px; }
}
@media (max-width: 560px) {
  .hkd-nav { padding: 0 12px; }
  .hkd-id img { width: 38px; height: 38px; }
  .hkd-id-teks b { font-size: 11px; }
  .hkd-id-teks span { font-size: 9.5px; }
  .hkd-body { padding: 8px; }
  .hkd-warn-sumber { margin-left: 0; }
}
