/* TKomando · gaya. Token → komponen. Mode gelap = langkah warna tersendiri, bukan inversi otomatis. */
:root {
  color-scheme: light;
  --plane: #f6f6f3; --surface: #fcfcfb; --ink: #0b0b0b; --ink2: #52514e; --muted: #7a7873;
  --grid: #e8e7e1; --base: #c3c2b7; --hair: rgba(11,11,11,.10); --hover: rgba(42,120,214,.07); --head: #0e2236; --head-ink: #e8eef4; --head-muted: #94a8bd;
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100;
  --good: #0ca30c; --good-text: #006300; --crit: #d03b3b; --warn: #fab219; --serious: #ec835a;
  --s1: #d03b3b; --s1t: #fff; --s2: #f1b3ab; --s2t: #0b0b0b; --s3: #ebeae5; --s3t: #0b0b0b; --s4: #a9cdf6; --s4t: #0b0b0b; --s5: #2a78d6; --s5t: #fff;
  --focus: #2a78d6;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) { color-scheme: dark; --plane: #0d0d0d; --surface: #1a1a19; --ink: #f0efec; --ink2: #c3c2b7; --muted: #8f8d86; --grid: #2c2c2a; --base: #383835; --hair: rgba(255,255,255,.10); --hover: rgba(57,135,229,.12); --head: #0a1622; --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500; --good-text: #0ca30c; --s1: #c23c3c; --s2: #6e3835; --s2t: #f0efec; --s3: #383835; --s3t: #f0efec; --s4: #274f80; --s4t: #f0efec; --s5: #3987e5; } }
:root[data-theme="dark"] { color-scheme: dark; --plane: #0d0d0d; --surface: #1a1a19; --ink: #f0efec; --ink2: #c3c2b7; --muted: #8f8d86; --grid: #2c2c2a; --base: #383835; --hair: rgba(255,255,255,.10); --hover: rgba(57,135,229,.12); --head: #0a1622; --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500; --good-text: #0ca30c; --s1: #c23c3c; --s2: #6e3835; --s2t: #f0efec; --s3: #383835; --s3t: #f0efec; --s4: #274f80; --s4t: #f0efec; --s5: #3987e5; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--plane); color: var(--ink); font: 14px/1.5 var(--font); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .ink2 { color: var(--ink2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- bilah atas */
.topbar { background: var(--head); color: var(--head-ink); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar-in { max-width: 1520px; margin: 0 auto; padding: 0 20px; height: 52px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: .01em; color: #fff; text-decoration: none; }
.brand svg { display: block; }
.brand .wm { font-weight: 800; letter-spacing: .12em; font-size: 16px; }
.brand small { font-weight: 400; color: var(--head-muted); font-size: 12px; margin-left: 2px; }
.nav { display: flex; gap: 2px; height: 100%; }
.nav a { display: flex; align-items: center; padding: 0 14px; color: var(--head-muted); text-decoration: none; font-weight: 550; border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: #5aa0f2; }
.who { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--head-muted); }
.who b { color: var(--head-ink); font-weight: 600; }
.who button { background: transparent; border: 1px solid rgba(255,255,255,.18); color: var(--head-ink); border-radius: 6px; padding: 4px 9px; cursor: pointer; font: inherit; }
.who .ts { display: none; }
.who button:hover { background: rgba(255,255,255,.08); }

.shell { max-width: 1520px; margin: 0 auto; padding: 22px 20px 56px; }
.banner { display: flex; gap: 10px; align-items: baseline; padding: 9px 14px; margin: 0 0 16px; border-left: 3px solid var(--warn); background: color-mix(in srgb, var(--warn) 14%, var(--surface)); border-radius: 0 6px 6px 0; }
.banner.err { border-color: var(--crit); background: color-mix(in srgb, var(--crit) 10%, var(--surface)); }

/* ---- kepala halaman + pemilih minggu */
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 6px; }
.pagehead h1 { font-size: 26px; line-height: 1.2; max-width: 880px; }
.lead { color: var(--ink2); max-width: 820px; margin: 6px 0 0; font-size: 15px; }
.ctl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
select, input[type=text], input[type=email], input[type=search] { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--base); border-radius: 6px; padding: 6px 9px; }
select:hover, input:hover { border-color: var(--muted); }
button.btn, a.btn { font: inherit; font-weight: 600; border: 1px solid var(--base); background: var(--surface); color: var(--ink); padding: 6px 12px; border-radius: 6px; cursor: pointer; text-decoration: none; display: inline-block; }
button.btn:hover, a.btn:hover { background: var(--hover); }
button.btn.primary, a.btn.primary { background: var(--series-1); border-color: var(--series-1); color: #fff; }
button.btn.danger { color: var(--crit); }
button.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---- pita KPI */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); margin: 20px 0 22px; background: var(--surface); }
.kpi { padding: 14px 18px 12px; border-left: 1px solid var(--hair); min-width: 0; }
.kpi:first-child { border-left: 0; }
.kpi .k-label { color: var(--ink2); font-size: 12.5px; }
.kpi .k-val { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-top: 2px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.kpi .k-val small { font-size: 13px; font-weight: 500; color: var(--ink2); letter-spacing: 0; }
.kpi .k-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; font-size: 12.5px; color: var(--ink2); }

/* ---- 2 kolom */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 28px; align-items: start; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
.sec-h h2 { font-size: 17px; }
.sec-h .hint { color: var(--muted); font-size: 12.5px; }
section.sec { margin-top: 30px; }
section.sec:first-child, .grid2 > section.sec, .grid3 > section.sec { margin-top: 0; }

/* ---- scoreboard */
.legend-scores { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink2); margin: 0 0 10px; }
.legend-scores .sc { width: 22px; height: 20px; line-height: 20px; font-size: 12px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.chip { border: 1px solid var(--base); background: var(--surface); border-radius: 999px; padding: 3px 11px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chip:hover { border-color: var(--muted); }
.board-wrap { overflow: auto; max-height: 76vh; background: var(--surface); border: 1px solid var(--hair); border-radius: 8px; }
table.board { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13.5px; }
table.board th { position: sticky; top: 0; z-index: 2; background: var(--surface); text-align: left; font-weight: 600; font-size: 12px; color: var(--ink2); padding: 8px 8px; border-bottom: 1px solid var(--base); white-space: nowrap; cursor: pointer; user-select: none; vertical-align: bottom; }
table.board th .w { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
table.board th[aria-sort] { color: var(--ink); }
table.board th[aria-sort="ascending"]::after { content: " ↑"; } table.board th[aria-sort="descending"]::after { content: " ↓"; }
table.board td { padding: 6px 8px; border-bottom: 1px solid var(--grid); white-space: nowrap; vertical-align: middle; }
table.board tr.row { cursor: pointer; }
table.board tr.row:hover td { background: var(--hover); }
table.board td.c, table.board th.c { text-align: center; }
table.board td.r, table.board th.r { text-align: right; }
table.board td.first { min-width: 190px; }
.kab-link { font-weight: 600; text-decoration: none; }
.kab-link:hover { text-decoration: underline; }
.sub { color: var(--muted); font-size: 11.5px; display: block; line-height: 1.3; }
.tag { font-size: 11px; border: 1px solid var(--base); border-radius: 4px; padding: 0 5px; margin-left: 6px; color: var(--ink2); vertical-align: 1px; }

.sc { display: inline-block; min-width: 26px; height: 24px; line-height: 24px; text-align: center; border-radius: 4px; font-weight: 650; font-size: 13px; font-variant-numeric: tabular-nums; }
.sc.s1, .cat.s1 { background: var(--s1); color: var(--s1t); } .sc.s2, .cat.s2 { background: var(--s2); color: var(--s2t); } .sc.s3, .cat.s3 { background: var(--s3); color: var(--s3t); }
.sc.s4, .cat.s4 { background: var(--s4); color: var(--s4t); } .sc.s5, .cat.s5 { background: var(--s5); color: var(--s5t); } .sc.sn, .cat.sn { background: transparent; color: var(--muted); }
.cat { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 650; }
.delta { font-variant-numeric: tabular-nums; font-size: 12.5px; white-space: nowrap; }
.delta.good { color: var(--good-text); } .delta.bad { color: var(--crit); } .delta.flat { color: var(--muted); }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.pill.pass { color: var(--good-text); background: color-mix(in srgb, var(--good) 14%, transparent); } .pill.fail { color: var(--crit); background: color-mix(in srgb, var(--crit) 12%, transparent); } .pill.na { color: var(--muted); }
.spark { display: block; }

/* ---- briefing */
aside.brief { position: sticky; top: 66px; max-height: calc(100vh - 80px); overflow: auto; padding-right: 4px; }
.brief h2 { font-size: 17px; margin-bottom: 4px; }
.brief-group { margin-top: 16px; }
.brief-group > h3 { font-size: 12.5px; color: var(--ink2); font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.ins { padding: 9px 0 10px; border-top: 1px solid var(--hair); display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
.ins .ic { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; margin-top: 2px; }
.ins.high .ic { background: var(--crit); } .ins.warn .ic { background: var(--warn); color: #0b0b0b; } .ins.good .ic { background: var(--good); } .ins.info .ic, .ins.dq .ic { background: var(--muted); }
.ins .t { font-weight: 600; line-height: 1.35; } .ins a.t { text-decoration: none; display: block; } .ins a.t:hover { text-decoration: underline; }
.ins .b { color: var(--ink2); font-size: 13px; margin-top: 2px; }
.ins .chips { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.ins .chips a { font-size: 12px; border: 1px solid var(--base); border-radius: 999px; padding: 1px 9px; text-decoration: none; background: var(--surface); }
.ins .chips a:hover { background: var(--hover); }

/* ---- detail kabupaten */
.crumb { font-size: 13px; margin-bottom: 8px; } .crumb a { color: var(--ink2); text-decoration: none; } .crumb a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: end; padding-bottom: 18px; border-bottom: 1px solid var(--hair); }
.hero .big { font-size: 56px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.hero .meta { display: flex; gap: 8px 16px; flex-wrap: wrap; color: var(--ink2); margin-top: 8px; align-items: center; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
table.tbl, .tbl-wrap table { border-collapse: collapse; width: 100%; font-size: 13px; }
table.tbl th, .tbl-wrap th { text-align: left; font-weight: 600; font-size: 12px; color: var(--ink2); padding: 6px 8px; border-bottom: 1px solid var(--base); white-space: nowrap; }
table.tbl td, .tbl-wrap td { padding: 6px 8px; border-bottom: 1px solid var(--grid); vertical-align: top; }
table.tbl td.r, table.tbl th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } table.tbl td.num { white-space: nowrap; } table.tbl td .sub { white-space: normal; }
.scroll { overflow: auto; max-height: 420px; border: 1px solid var(--hair); border-radius: 8px; background: var(--surface); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hair); margin: 14px 0 18px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; font: inherit; font-weight: 600; color: var(--ink2); padding: 8px 12px; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--series-1); }
.seg { display: inline-flex; border: 1px solid var(--base); border-radius: 6px; overflow: hidden; }
.seg button { border: 0; background: var(--surface); font: inherit; font-size: 12.5px; padding: 4px 10px; cursor: pointer; color: var(--ink2); }
.seg button + button { border-left: 1px solid var(--base); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }

/* ---- chart */
.chart { margin: 0 0 18px; }
.chart-title { font-weight: 600; font-size: 13.5px; margin-bottom: 4px; } .chart-title .unit { color: var(--muted); font-weight: 400; }
.legend { list-style: none; display: flex; gap: 14px; flex-wrap: wrap; padding: 0; margin: 2px 0 6px; font-size: 12.5px; color: var(--ink2); }
.legend li { display: flex; align-items: center; gap: 6px; } .legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.legend.v { flex-direction: column; gap: 6px; } .legend.v li b { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; } .legend.v li { min-width: 210px; }
.plot svg { display: block; overflow: visible; width: 100%; }
.plot .grid { stroke: var(--grid); stroke-width: 1; } .plot .base { stroke: var(--base); stroke-width: 1; } .plot .ref { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 4; opacity: .7; }
.plot .cross { stroke: var(--muted); stroke-width: 1; }
.axtag { font-size: 10.5px; color: var(--muted); border: 1px solid var(--hair); border-radius: 9px; padding: 0 6px; margin-left: 2px; }
.plot text.axt { font-weight: 650; font-size: 11.5px; }
.plot text.ax { fill: var(--muted); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; } .plot text.ref-l { fill: var(--ink2); }
details.tbl { margin-top: 4px; font-size: 12.5px; } details.tbl summary { cursor: pointer; color: var(--ink2); }
details.tbl .tbl-wrap { max-height: 240px; overflow: auto; margin-top: 6px; border: 1px solid var(--hair); border-radius: 6px; }
.tip { position: fixed; z-index: 100; display: none; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--base); border-radius: 6px; padding: 7px 10px; font-size: 12.5px; box-shadow: 0 4px 14px rgba(0,0,0,.14); max-width: 320px; }
.tip b { font-weight: 650; } .tip .tr { display: flex; align-items: center; gap: 7px; margin-top: 3px; } .tip .tr i { width: 9px; height: 9px; border-radius: 2px; } .tip .tr b { margin-left: auto; padding-left: 14px; font-variant-numeric: tabular-nums; }
.hb-row { display: grid; grid-template-columns: minmax(120px, 34%) 1fr 64px; gap: 10px; align-items: center; padding: 3px 0; font-size: 13px; }
.hb-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; } a.hb-label:hover { text-decoration: underline; }
.hb-track { display: flex; gap: 2px; height: 14px; } .hb-seg { display: block; height: 100%; min-width: 2px; } .hb-seg.last { border-radius: 0 4px 4px 0; } .hb-seg:first-child { border-radius: 2px 0 0 2px; } .hb-seg.last:first-child { border-radius: 2px 4px 4px 2px; }
.hb-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink2); }
.dv-row { display: grid; grid-template-columns: minmax(130px, 34%) 1fr 1fr 70px; align-items: center; gap: 0 4px; padding: 3px 0; font-size: 13px; }
.dv-neg { display: flex; justify-content: flex-end; border-right: 1px solid var(--base); height: 16px; } .dv-pos { height: 16px; display: flex; }
.dv-bar { display: block; height: 100%; } .dv-bar.neg { background: var(--s1); border-radius: 4px 0 0 4px; } .dv-bar.pos { background: var(--s5); border-radius: 0 4px 4px 0; }
.dv-val { text-align: right; font-variant-numeric: tabular-nums; font-size: 12.5px; } .dv-val.bad { color: var(--crit); } .dv-val.good { color: var(--good-text); }
.donut { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; } .dn-big { font-size: 22px; font-weight: 700; fill: var(--ink); } .dn-sub { font-size: 9.5px; fill: var(--muted); } .dn { cursor: default; }
.empty { color: var(--muted); padding: 14px 0; }

/* ---- peta */
.map { position: relative; overflow: hidden; background: color-mix(in srgb, var(--grid) 70%, var(--surface)); border: 1px solid var(--hair); border-radius: 8px; touch-action: none; cursor: grab; }
.map.drag { cursor: grabbing; } .map-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; user-select: none; } .map-pts { position: absolute; inset: 0; }
.map .pt { position: absolute; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45); box-sizing: content-box; margin: -2px 0 0 -2px; cursor: pointer; transition: transform .12s; } .map .pt:hover { transform: scale(1.25); } .map .pt:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.map .pt.ring { box-shadow: 0 0 0 4px rgba(208,59,59,.28), 0 1px 4px rgba(0,0,0,.45); } .map .pt.sel { border-color: #0b1f3a; box-shadow: 0 0 0 4px rgba(255,183,3,.9), 0 2px 6px rgba(0,0,0,.5); z-index: 5; }
.map-tiles img { filter: saturate(.55) contrast(.95) brightness(1.05); }
:root[data-theme="dark"] .map-tiles img { filter: invert(1) hue-rotate(180deg) saturate(.5) brightness(.85) contrast(.9); }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .map-tiles img { filter: invert(1) hue-rotate(180deg) saturate(.5) brightness(.85) contrast(.9); } }
.map-ctl { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; border-radius: 6px; overflow: hidden; border: 1px solid var(--base); } .map-ctl button { width: 30px; height: 30px; border: 0; background: var(--surface); font-size: 17px; cursor: pointer; color: var(--ink); } .map-ctl button + button { border-top: 1px solid var(--base); }
.map-attr { position: absolute; right: 6px; bottom: 4px; font-size: 10px; color: #333; background: rgba(255,255,255,.7); padding: 0 4px; border-radius: 3px; }

/* ---- admin / form */
.form { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin: 8px 0 16px; } .form label { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--ink2); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; } .status-dot.approved { background: var(--good); } .status-dot.pending { background: var(--warn); } .status-dot.disabled { background: var(--muted); }
.callout { border: 1px solid var(--hair); background: var(--surface); border-radius: 8px; padding: 12px 14px; margin: 10px 0 16px; } .callout code, code.cmd { background: var(--grid); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
pre.cmd { background: var(--ink); color: var(--surface); padding: 10px 12px; border-radius: 6px; overflow: auto; font-size: 12.5px; }
.center { max-width: 560px; margin: 12vh auto; padding: 0 20px; text-align: left; } .center h1 { font-size: 24px; margin-bottom: 8px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: var(--surface); padding: 9px 16px; border-radius: 8px; z-index: 200; font-weight: 550; }
.skel { background: linear-gradient(90deg, var(--grid), var(--surface), var(--grid)); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 6px; height: 18px; } @keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

@media (max-width: 1180px) { .cols { grid-template-columns: minmax(0, 1fr); } aside.brief { position: static; max-height: none; } .kpis { grid-template-columns: repeat(2, 1fr); } .kpi:nth-child(3) { border-left: 0; } .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .who .tl { display: none; } .who .ts { display: inline; } .nav { overflow-x: auto; min-width: 0; flex: 1; scrollbar-width: none; } .who { flex-shrink: 0; } .topbar-in { gap: 8px; padding: 0 10px; } .brand small { display: none; } .nav a { padding: 0 8px; white-space: nowrap; font-size: 13px; } .who span { display: none; } .who button { font-size: 12px; padding: 3px 7px; } .dv-row { grid-template-columns: 96px 1fr 1fr 58px; } .shell { padding: 16px 12px 40px; } .pagehead h1 { font-size: 21px; } .hero { grid-template-columns: 1fr; } .hero .big { font-size: 44px; } .kpis { grid-template-columns: 1fr; } .kpi { border-left: 0; border-top: 1px solid var(--hair); } .kpi:first-child { border-top: 0; } .hb-row { grid-template-columns: 1fr 1fr 48px; } }
@media print { .topbar, .ctl, .map-ctl { display: none; } body { background: #fff; } }

.prow { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--hair); } .prow:first-of-type { border-top: 0; }

/* ---- trend subject, clickable lists, map legend (kabupaten page) ---- */
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1100px) { .split { grid-template-columns: minmax(0, 1fr); } }
.subject { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--hair); border-radius: 8px; font-size: 13.5px; }
.subject .lvl { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 1px 8px; border-radius: 10px; background: color-mix(in srgb, var(--series-1) 18%, transparent); }
.subject .lvl.site { background: color-mix(in srgb, var(--warn) 38%, transparent); }
.subject .btn { margin-left: auto; padding: 3px 10px; }
.panel { min-width: 0; }
.hintline { margin: 0 0 8px; font-size: 12.5px; }
.pick-list { max-height: 392px; }
.pick-list table.tbl { margin: 0; }
.pick-list th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
tr.pick { cursor: pointer; } tr.pick:hover td { background: var(--hover); }
tr.pick.sel td { background: color-mix(in srgb, var(--warn) 24%, transparent); }
tr.pick.pin td { background: color-mix(in srgb, var(--series-1) 9%, transparent); }
tr.pick:focus-visible { outline: 2px solid var(--series-1); outline-offset: -2px; }
a.open { text-decoration: none; padding: 0 4px; font-weight: 700; }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 8px; font-size: 12.5px; color: var(--ink2); }
.map-legend .lgi { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.dot.fail { background: var(--crit); } .dot.pass { background: var(--series-1); } .dot.sel { background: var(--series-4); box-shadow: 0 0 0 2px #0b1f3a; }

/* ---- RNOP program page ---- */
.matrix table.tbl th.c, .matrix table.tbl td.c { text-align: center; }
.matrix table.tbl td:first-child, .matrix table.tbl th:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 215px; }
.matrix table.tbl tr.total td { font-weight: 650; border-top: 2px solid var(--base); background: color-mix(in srgb, var(--series-1) 6%, var(--surface)); }
.matrix { max-height: none; } .matrix table.tbl th, .matrix table.tbl td { padding: 6px 6px; } .matrix table.tbl th { font-size: 11.5px; }
.pgrid { margin-top: 30px; }
.pg-total { display: flex; height: 30px; margin-top: 14px; border-radius: 6px; overflow: hidden; background: var(--grid); }
.pg-total .seg { display: flex; align-items: center; padding: 0 12px; color: #fff; font-weight: 650; font-size: 13px; white-space: nowrap; }
.pg-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; font-size: 12.5px; } .pg-ctl input[type=search] { min-width: 150px; margin-left: auto; }
.pg-list { display: flex; flex-direction: column; border: 1px solid var(--hair); border-radius: 8px; background: var(--surface); } .pg-list.open { max-height: 560px; overflow: auto; }
.pg-row { padding: 9px 12px 10px; border-bottom: 1px solid var(--grid); } .pg-row:last-child { border-bottom: 0; }
.pg-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pg-name { font-weight: 600; font-size: 13.5px; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; } a.pg-name:hover { text-decoration: underline; }
.pg-pct { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; }
.pg-track { height: 8px; margin: 6px 0 5px; border-radius: 4px; background: color-mix(in srgb, var(--series-2) 30%, var(--grid)); overflow: hidden; } .pg-closed { display: block; height: 100%; background: var(--series-1); border-radius: 4px 0 0 4px; }
.pg-nums { display: flex; gap: 14px; font-size: 12px; color: var(--ink2); font-variant-numeric: tabular-nums; } .pg-nums b { color: var(--ink); font-weight: 650; }
.pg-more { margin-top: 8px; }

/* ---- sign in / sign up: form on the left, auto-sliding product preview on the right (always light) */
body.is-login { background: #fff; }
body.is-login #top { display: none; }
body.is-login .shell { max-width: none; padding: 0; margin: 0; }
.lg { --navy: #0b1f3a; --red: #e1142b; --mut: #5d6c84; --blue: #2a6fdb; display: grid; grid-template-columns: minmax(440px, 44%) 1fr; min-height: 100vh; background: #fff; color: var(--navy); font-family: var(--font); }
.lg-left { display: flex; flex-direction: column; padding: 52px clamp(28px, 6vw, 92px) 34px; min-width: 0; }
.lg-brand { display: flex; align-items: center; gap: 11px; }
.lg-brand .wm { font-size: 32px; font-weight: 800; letter-spacing: -.045em; line-height: 1; color: var(--navy); } .lg-brand .wm b { color: var(--red); font-weight: 800; }
.lg-main { margin: auto 0; width: 100%; max-width: 480px; padding: 40px 0 24px; }
.lg-foot { margin: 0; font-size: 13px; color: #8493aa; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--red); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); }
.lg h1 { font-size: clamp(34px, 4vw, 50px); line-height: 1.05; font-weight: 750; letter-spacing: -.035em; margin: 16px 0 10px; color: var(--navy); }
.lsub { color: var(--mut); font-size: 17px; line-height: 1.5; margin: 0 0 30px; }
.lform { display: flex; flex-direction: column; gap: 20px; }
.lf { display: flex; flex-direction: column; gap: 8px; }
.lf > label { font-size: 14px; font-weight: 650; color: var(--navy); }
.fld { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; border-radius: 11px; border: 1px solid #cfd8e6; background: #fff; color: #7d8aa0; }
.fld:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42, 111, 219, .18); }
.fld input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 16px var(--font); color: var(--navy); padding: 0; height: 100%; }
.fld input::placeholder { color: #8d9ab0; }
.eye { border: 0; background: transparent; color: var(--blue); font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; padding: 8px 4px; border-radius: 6px; }
.eye:hover { text-decoration: underline; }
.lbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; font: inherit; font-weight: 650; font-size: 17px; height: 56px; padding: 0 16px; border-radius: 12px; border: 1px solid #cfd8e6; background: #fff; color: var(--navy); cursor: pointer; text-decoration: none; }
.lbtn:hover { background: #f3f6fb; }
.fld input.code-in { font: 700 26px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 10px; }
.fld input.code-in::placeholder { letter-spacing: 10px; font-weight: 500; }
.llinks a.off { color: var(--mut); pointer-events: none; }
.lbtn.primary { background: var(--navy); color: #fff; border: 0; border-bottom: 3px solid var(--red); height: 58px; margin-top: 6px; box-shadow: 0 10px 24px rgba(11, 31, 58, .25); }
.lbtn.primary:hover { background: #12294a; }
.lbtn:disabled { opacity: .7; cursor: progress; }
.lbtn + .lbtn { margin-top: 10px; }
.lmsg { border-radius: 9px; padding: 10px 13px; font-size: 14px; line-height: 1.45; border-left: 3px solid var(--red); background: #fdecee; color: #5b1019; }
.lmsg.ok { border-color: #0ca30c; background: #e8f6e8; color: #0b3a0b; }
.lmsg[hidden] { display: none; }
.llinks { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-top: 22px; font-size: 15px; color: var(--mut); }
.llinks a { color: var(--blue); font-weight: 650; text-decoration: none; } .llinks a:hover { text-decoration: underline; }
.lnote { display: flex; gap: 12px; align-items: flex-start; margin-top: 36px; padding: 16px 18px; border-radius: 12px; background: #f3f6fb; color: var(--mut); font-size: 14px; line-height: 1.5; }
.lnote b { color: var(--navy); }
.lsteps { margin: 0 0 4px; padding-left: 22px; color: var(--mut); font-size: 16px; line-height: 1.5; } .lsteps li { margin: 8px 0; }
.lg :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.lg .fld input:focus-visible { outline: 0; }
.login-card.plain { --navy: #0b1f3a; --red: #e1142b; --mut: #5d6c84; --blue: #2a6fdb; width: 100%; max-width: 460px; margin-top: 14px; padding: 24px; border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); }
.login-card.plain .lf > label { color: var(--ink); } .login-card.plain .fld { background: var(--surface); border-color: var(--base); } .login-card.plain .fld input { color: var(--ink); } .login-card.plain .lbtn.primary { box-shadow: none; }
.login-card.plain .lsub { margin-bottom: 14px; font-size: 14px; }

/* right side */
.lg-right { background: linear-gradient(160deg, #eef3fa 0%, #e1e9f5 100%); padding: 64px clamp(32px, 5vw, 80px) 48px; display: flex; flex-direction: column; justify-content: center; gap: 22px; min-width: 0; overflow: hidden; }
.lg-right .kick { font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--blue); }
.lg-right h2 { margin: 0; font-size: clamp(28px, 2.7vw, 40px); line-height: 1.14; font-weight: 750; letter-spacing: -.03em; max-width: 660px; color: var(--navy); }
.cr { width: 100%; max-width: 690px; margin-top: 6px; }
.cr-view { overflow: hidden; margin: 0 -24px; padding: 4px 0 34px; container-type: inline-size; }
.cr-track { display: flex; transition: transform .85s cubic-bezier(.65, 0, .25, 1); }
.cr-slide { flex: 0 0 100%; min-width: 0; padding: 0 24px; box-sizing: border-box; }
.cr-cap { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
.cr-cap .ic { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--red); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(11, 31, 58, .12); flex: none; }
.cr-cap b { display: block; font-size: 17px; font-weight: 750; color: var(--navy); }
.cr-cap span:not(.ic) { display: block; font-size: 14px; line-height: 1.4; color: var(--mut); max-width: 520px; }
.cr-dots { display: flex; gap: 4px; margin-top: -6px; }
.cr-dots button { width: 36px; height: 20px; padding: 7px 0; border: 0; background: #c3d0e4; background-clip: content-box; border-radius: 3px; cursor: pointer; transition: background-color .3s, width .3s; }
.cr-dots button[aria-current] { background-color: var(--red); width: 52px; }

/* the sample cards (sample numbers only) */
.art { background: #fff; border-radius: 18px; box-shadow: 0 18px 32px -10px rgba(11, 31, 58, .24), 0 0 0 1px rgba(11, 31, 58, .06); overflow: hidden; color: var(--navy); font-size: 15px; }
.art-h { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; padding: 16px 22px; font-weight: 750; font-size: 17px; }
.art-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.ap { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ap.tg-b { background: #eaf1fd; color: #2a6fdb; } .ap.tg-g { background: #f1f3f7; color: #5d6c84; }
.ap.c1 { background: #d03b3b; color: #fff; } .ap.c2 { background: #f1b3ab; color: #111; } .ap.c3 { background: #ebeae5; color: #111; } .ap.c4 { background: #a9cdf6; color: #111; } .ap.c5 { background: #2a78d6; color: #fff; }
.ap.fail { background: #fdecee; color: #b3122a; } .ap.pass { background: #e8f6e8; color: #0b6b0b; }
.sb-row { display: grid; grid-template-columns: minmax(110px, 1.5fr) 58px 70px 74px 84px 1fr; align-items: center; gap: 6px; min-height: 60px; padding: 0 22px; border-top: 1px solid #e8ecf3; }
.sb-row b { display: block; font-weight: 700; } .sb-row small { display: block; font-size: 12px; color: #8493aa; }
.sb-tot { font-size: 18px; font-weight: 800; } .sb-d { font-size: 13.5px; font-weight: 600; } .sb-d.dn { color: #c42f2f; } .sb-d.up { color: #0a7a0a; }
.sb-sc { display: flex; gap: 6px; justify-content: flex-end; }
.asc { display: inline-grid; place-items: center; width: 30px; height: 26px; border-radius: 6px; font-size: 13.5px; font-weight: 700; }
.asc.s1 { background: #d03b3b; color: #fff; } .asc.s2 { background: #f1b3ab; color: #111; } .asc.s3 { background: #ebeae5; color: #111; } .asc.s4 { background: #a9cdf6; color: #111; } .asc.s5 { background: #2a78d6; color: #fff; }
@container (max-width: 700px) { .sb-row { grid-template-columns: minmax(100px, 1.5fr) 54px 64px 72px 1fr; } .sb-sp { display: none; } }
@container (max-width: 560px) { .asc { width: 26px; } }
.ms { display: grid; grid-template-columns: 1.15fr 1fr; gap: 6px 14px; padding: 0 22px 20px; align-items: start; }
.ms-map { width: 100%; height: auto; display: block; }
.ms-t { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8493aa; margin: 6px 0 4px; }
.ms-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid #e8ecf3; } .ms-row b { display: block; font-size: 14.5px; } .ms-row small { font-size: 12px; color: #8493aa; }
.ms-leg, .tr-leg { display: flex; gap: 16px; margin-top: 12px; font-size: 12.5px; color: var(--mut); flex-wrap: wrap; }
.ms-leg i, .tr-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; } .tr-leg i { width: 16px; height: 3px; border-radius: 2px; vertical-align: middle; }
.tr { padding: 0 22px 20px; } .tr svg { width: 100%; height: auto; display: block; }
@container (max-width: 400px) { .ms { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .lg { grid-template-columns: 1fr; } .lg-right { display: none; } .lg-main { max-width: 520px; } }
@media (max-width: 480px) { .lg-left { padding: 28px 20px 24px; } .lg-main { padding: 28px 0 16px; } .lsub { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .cr-track { transition: none; } }
dialog.pwdlg { border: 1px solid var(--base); border-radius: 12px; background: var(--surface); color: var(--ink); padding: 22px 24px; max-width: 460px; width: calc(100% - 32px); }
dialog.pwdlg::backdrop { background: rgba(5,12,20,.55); }
dialog.pwdlg h2 { font-size: 18px; margin-bottom: 8px; }
.pwshow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; padding: 12px 14px; border-radius: 8px; background: var(--plane); border: 1px dashed var(--base); }
.pwshow code { font: 600 19px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; user-select: all; }
@media (max-width: 480px) { .login-card { padding: 24px 20px 20px; } }

/* scoreboard full screen (native Fullscreen API, or a page-covering layer where the browser has none) */
.board-sec.is-fs { background: var(--plane); padding: 18px 26px 20px; box-sizing: border-box; display: flex; flex-direction: column; height: 100vh; overflow: auto; margin: 0; }
.board-sec.fs-fallback { position: fixed; inset: 0; z-index: 60; }
.board-sec.is-fs .board-wrap { flex: 1; min-height: 0; max-height: none; }
.board-sec.is-fs table.board { font-size: 15px; } .board-sec.is-fs table.board th { font-size: 13px; }
.board-sec:fullscreen { background: var(--plane); }

/* ---- Data → Convert & ingest */
.adv { margin: 10px 0 4px; } .adv > summary { cursor: pointer; font-weight: 600; color: var(--ink2); padding: 4px 0; }
.cv-drop { border: 2px dashed var(--base); border-radius: 12px; padding: 22px 18px; text-align: center; cursor: pointer; background: var(--surface); }
.cv-drop:hover, .cv-drop.over, .cv-drop:focus-visible { border-color: var(--series-1); background: color-mix(in srgb, var(--series-1) 6%, var(--surface)); }
.cv-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 8px; margin: 12px 0 4px; }
.cv-slot { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--hair); border-radius: 10px; background: var(--surface); }
.cv-slot .mk { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1.5px solid var(--base); color: var(--muted); font-size: 12px; }
.cv-slot.has .mk { background: var(--good); border-color: var(--good); color: #fff; font-weight: 800; }
.cv-slot .tx { flex: 1; min-width: 0; } .cv-slot .tx b { display: block; } .cv-slot .fn { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-opts { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 4px; max-width: 860px; } .cv-opts label { display: flex; gap: 10px; align-items: flex-start; } .cv-opts input[type=text] { width: 110px; } .cv-week { flex-wrap: wrap; align-items: center !important; }
.cv-prog { display: flex; align-items: center; gap: 12px; margin: 6px 0; } .cv-prog[hidden] { display: none; } .cv-prog progress { width: min(520px, 60%); }
.cv-out { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.cv-banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; border: 1px solid; font-size: 14.5px; line-height: 1.45; }
.cv-banner .ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font-weight: 800; }
.cv-banner.ok { background: color-mix(in srgb, var(--good) 10%, var(--surface)); border-color: color-mix(in srgb, var(--good) 45%, transparent); } .cv-banner.ok .ic { background: var(--good); }
.cv-banner.warn { background: color-mix(in srgb, var(--warn) 16%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 60%, transparent); } .cv-banner.warn .ic { background: #d49400; }
.cv-banner.err { background: color-mix(in srgb, var(--crit) 10%, var(--surface)); border-color: color-mix(in srgb, var(--crit) 50%, transparent); } .cv-banner.err .ic { background: var(--crit); }
.cv-sum { display: flex; flex-direction: column; gap: 4px; padding: 0 2px; } .cv-rows { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; } .cv-rows span { white-space: nowrap; }
.cv-card { border: 1px solid var(--hair); border-radius: 10px; background: var(--surface); overflow: hidden; } .cv-card.error { border-color: color-mix(in srgb, var(--crit) 55%, transparent); } .cv-card.warn { border-color: color-mix(in srgb, var(--warn) 70%, transparent); }
.cv-card header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--hair); background: color-mix(in srgb, var(--plane) 60%, var(--surface)); }
.cv-card header .fn { display: block; font-size: 12px; color: var(--muted); font-weight: 400; word-break: break-all; }
.cv-chip { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; } .cv-chip.ok { background: color-mix(in srgb, var(--good) 16%, var(--surface)); color: var(--good-text); } .cv-chip.warn { background: color-mix(in srgb, var(--warn) 24%, var(--surface)); color: #6b4a00; } .cv-chip.error { background: color-mix(in srgb, var(--crit) 14%, var(--surface)); color: var(--crit); }
.cv-card ul { list-style: none; margin: 0; padding: 6px 14px 10px; } .cv-it { display: flex; gap: 10px; padding: 6px 0; border-top: 1px solid var(--grid); } .cv-it:first-child { border-top: 0; }
.cv-it .ic { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; margin-top: 1px; }
.cv-it.ok .ic { background: var(--good); } .cv-it.info .ic { background: #8a97ab; font-style: italic; font-family: Georgia, serif; } .cv-it.adjust .ic { background: #5c7cba; } .cv-it.warn .ic { background: #d49400; } .cv-it.error .ic { background: var(--crit); }
.cv-it .det { font-size: 13px; color: var(--ink2); white-space: pre-line; margin-top: 2px; }
.cv-act { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--hair); border-radius: 10px; background: var(--surface); } .cv-ack { display: flex; gap: 10px; align-items: center; font-weight: 600; }

/* kabupaten multi-select filter */
.kwrap { position: relative; display: inline-block; }
.chip.pickbtn[aria-pressed="true"] { background: var(--series-1); border-color: var(--series-1); color: #fff; }
.kpop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 40; width: min(380px, 92vw); background: var(--surface); border: 1px solid var(--base); border-radius: 10px; box-shadow: 0 14px 36px rgba(0,0,0,.28); padding: 10px; }
.kpop[hidden] { display: none; }
.kpop-h { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; } .kpop-h input[type=search] { width: 100%; }
.kopts { max-height: 300px; overflow: auto; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 4px 0; }
.kopt { display: flex; align-items: center; gap: 9px; padding: 6px 6px; border-radius: 6px; cursor: pointer; } .kopt:hover { background: var(--hover); } .kopt[hidden] { display: none; }
.kopt small { margin-left: auto; color: var(--muted); font-size: 11.5px; }
.kpop-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 12.5px; }
