/* Ruang Kerja APEKSI: rangka (sidebar, rail, bilah bawah) dan modul Repositioning.
   Huruf: Schibsted Grotesk (judul, angka) dan Hanken Grotesk (teks), keduanya SIL OFL lewat Fontsource. Ikon: Lucide (ISC). */
@font-face { font-family: 'Schibsted Grotesk'; src: url('assets/fonts/SchibstedGrotesk-Variable.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('assets/fonts/HankenGrotesk-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --head: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ink-4: #636B74;
  --nav-w: 248px;
  --top-h: 64px;
  --full: #2F8A57;
  --part: #E0A43A;
  --none: #E7E4DD;
  --k1: #2F5D8C; --k2: #3B7A55; --k3: #9A6230; --k4: #7A3E5C; --k5: #22777A; --k6: #B5532F; --k7: #56606B; --k8: #857423;
}
body { font: 15.5px/1.55 var(--body); letter-spacing: 0; text-rendering: optimizeLegibility; }
h1, h2, h3 { font-family: var(--head); letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
.num, .tnum { font-family: var(--head); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.mono { font-family: var(--mono); }
.ic { width: 18px; height: 18px; stroke-width: 1.75; }
::selection { background: #D7E6F5; color: var(--navy-ink); }

/* ================= rangka ================= */
.shell { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.nav { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: 20px 14px 18px; border-right: 1px solid var(--line); background: #FBFAF8; overflow-y: auto; scrollbar-width: none; }
.nav-brand { display: block; padding: 4px 10px 0; }
.nb-full { display: block; height: 42px; width: auto; }
.nb-mark { display: none; width: 36px; height: 36px; }
.nav-tag { margin: 10px 10px 22px; font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: .01em; }
.nav-g { margin: 18px 10px 6px; font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); }
.nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; transition: background .15s, color .15s; }
.nav a .ic { width: 19px; height: 19px; color: #7C858E; transition: color .15s; }
.nav a:hover { background: var(--ground-2); color: var(--ink); }
.nav a:hover .ic { color: var(--ink-2); }
.nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.nav a[aria-current="page"] .ic { color: #fff; }
.nav-end { margin-top: 18px !important; padding-top: 14px !important; border-top: 1px solid var(--line); }
.nav-foot { margin: auto 10px 0; padding-top: 24px; font: 600 13.5px/1.35 var(--head); letter-spacing: -0.01em; color: var(--ink-4); }

.main-col { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 12px; padding: 0 24px; background: rgba(244,243,239,.97); backdrop-filter: saturate(1.3) blur(10px); -webkit-backdrop-filter: saturate(1.3) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
body.scrolled .top { border-bottom-color: var(--line); }
.top-brand { display: none; }
.top-brand img { display: block; height: 34px; width: auto; }
.tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.stack { min-height: calc(100dvh - var(--top-h)); padding: 4px 24px 56px; }
.strips { top: calc(var(--top-h) + 12px); height: calc(100dvh - var(--top-h) - 28px); }
.sheet { padding: 36px 44px 64px; border-radius: 20px; box-shadow: 0 0 0 1px rgba(17,26,34,.04), 0 1px 2px rgba(17,26,34,.04), 0 12px 32px -20px rgba(17,26,34,.18); }
.sheet-wide { max-width: none; }
.tabbar, .msheet { display: none; }

.me { border-color: var(--line); background: #fff; }
.me .av, .menu-who .av { background: var(--navy); }
img.av { object-fit: cover; background: var(--ground-2); }
.menu { border-radius: 16px; }
.icon-btn { border-radius: 10px; }
.icon-btn:hover { background: #fff; box-shadow: 0 0 0 1px var(--line); }
.icon-sm { width: 28px; height: 28px; }
.icon-sm .ic { width: 15px; height: 15px; }

/* status database */
.sync-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font: 500 13.5px/1 var(--body); cursor: pointer; white-space: nowrap; transition: border-color .15s, color .15s; }
.sync-chip:hover { border-color: #C9D3DD; color: var(--ink); }
.sync-chip i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-4); flex: none; }
.sync-chip[data-state="idle"] i { background: var(--full); box-shadow: 0 0 0 3px rgba(47,138,87,.16); }
.sync-chip[data-state="busy"] i { background: var(--blue); animation: sync-pulse 1s ease-in-out infinite; }
.sync-chip[data-state="pending"] i, .sync-chip[data-state="offline"] i { background: var(--part); }
.sync-chip[data-state="masuk"] i, .sync-chip[data-state="unset"] i { background: var(--red); }
@keyframes sync-pulse { 50% { opacity: .3; } }

/* ================= masuk ================= */
body.gated > *:not(.signin):not(script):not(svg) { visibility: hidden; }
.gate-google { margin-bottom: 20px; }
.gate-btn { display: flex; min-height: 44px; }
.gate-hint { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-3); }
.gate-code { display: grid; gap: 6px; }
.gate-google:not([hidden]) + .gate-code { padding-top: 20px; border-top: 1px solid var(--line); }
.gate-code .in { height: 46px; padding: 0 14px; border: 1px solid #D6D2CA; border-radius: 12px; background: #fff; font-size: 15px; }
.gate-code .in:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20,98,176,.14); outline: none; }
.gate-code .fl { margin-top: 8px; }
.in-code { font-family: var(--mono) !important; letter-spacing: .18em !important; text-transform: uppercase; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-ink); color: #fff; border-color: var(--navy-ink); }
.btn-block { width: 100%; height: 48px; margin-top: 18px; border-radius: 12px; font-size: 15px; }
.gate-err { margin: 16px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--red-wash); color: var(--red); font-size: 13.5px; }

/* ================= tipografi halaman ================= */
.eyebrow { margin: 0 0 10px; font: 600 12.5px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.display { margin: 0; font-size: clamp(40px, 5.2vw, 72px); line-height: .98; font-weight: 600; letter-spacing: -0.045em; color: var(--navy-ink); }
.lede { margin: 16px 0 0; max-width: 62ch; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.page-head { margin-bottom: 32px; }
.page-head h1 { margin: 0; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; font-weight: 600; color: var(--navy-ink); }
.page-stat { margin: 14px 0 0; font-size: 14px; color: var(--ink-3); }
.page-stat .num { color: var(--ink); font-weight: 600; font-size: 15px; }
.nil { color: var(--ink-4); font-style: italic; font-weight: 400; }
.nil-block { margin: 0; padding: 16px; border: 1px dashed var(--line); border-radius: 12px; color: var(--ink-3); font-size: 13.5px; }
.meta { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-4); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--ground); color: var(--ink-2); font-size: 13.5px; font-weight: 500; font-style: normal; white-space: nowrap; }
.tag .ic { width: 14px; height: 14px; }
.tag-amber { background: var(--amber-wash); color: var(--amber); }
.tag-sm { padding: 2px 8px; font-size: 12px; vertical-align: 2px; }
.more { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--blue); white-space: nowrap; }
.more .ic { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.more:hover .ic { transform: translateX(3px); }
.note .ic { color: var(--ink-3); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; gap: 6px; }
.btn-sm .ic { width: 15px; height: 15px; }
.btn-ghost { border-color: transparent; background: none; color: var(--ink-3); }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.chip:hover { border-color: #C9D3DD; color: var(--ink); }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .num { font-size: 13px; opacity: .7; }
.chip .ic { width: 16px; height: 16px; }
.chip-s { padding: 4px 10px; font-size: 13.5px; }

/* komponen: lencana warna */
.kb { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: var(--k, var(--navy)); }
.kb .ic { width: 18px; height: 18px; }
.kb-sm { width: 26px; height: 26px; border-radius: 8px; }
.kb-sm .ic { width: 14px; height: 14px; }
.kb-lg { width: 60px; height: 60px; border-radius: 18px; }
.kb-lg .ic { width: 30px; height: 30px; stroke-width: 1.6; }
.kb-k1 { --k: var(--k1); } .kb-k2 { --k: var(--k2); } .kb-k3 { --k: var(--k3); } .kb-k4 { --k: var(--k4); }
.kb-k5 { --k: var(--k5); } .kb-k6 { --k: var(--k6); } .kb-k7 { --k: var(--k7); } .kb-k8 { --k: var(--k8); }

.ring-bg { fill: none; stroke: var(--line-2); stroke-width: 6; }
.ring-fg { fill: none; stroke: var(--navy); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease); }

/* ================= ringkasan ================= */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; padding: 8px 0 36px; border-bottom: 1px solid var(--line-2); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-score { position: relative; display: grid; place-items: center; width: 148px; height: 148px; }
.hero-score .ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-score .ring-bg, .hero-score .ring-fg { stroke-width: 9; }
.hero-score .ring-fg { stroke: var(--full); }
.hero-score-n { display: grid; justify-items: center; text-align: center; }
.hero-score-n b { font-size: 40px; font-weight: 600; line-height: 1; color: var(--navy-ink); }
.hero-score-n b small { font-size: 18px; margin-left: 1px; color: var(--ink-3); }
.hero-score-n span { max-width: 92px; margin-top: 4px; font-size: 12.5px; line-height: 1.25; color: var(--ink-3); }

.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 28px 0 32px; }
.tile { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .15s, box-shadow .2s, transform .2s var(--ease); }
a.tile:hover { border-color: #CCD5DE; box-shadow: var(--shadow-1); transform: translateY(-1px); }
.tile-k { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--ink-3); }
.tile-k .ic { width: 16px; height: 16px; }
.tile b { font-size: 30px; line-height: 1.05; font-weight: 600; color: var(--navy-ink); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile b small { font-size: 16px; color: var(--ink-3); }
.tile-s { font-size: 13.5px; color: var(--ink-3); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-pagu .in { margin-top: 2px; height: 32px; padding: 0 10px; border: 1px dashed #CFCAC0; border-radius: 9px; background: var(--ground); font-family: var(--head); font-variant-numeric: tabular-nums; font-size: 13.5px; }
.tile-pagu .in:focus { border-style: solid; background: #fff; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.side { display: grid; gap: 20px; }
.panel { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; font-size: 17px; font-weight: 600; color: var(--navy-ink); }
.panel-head p { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
.legend { margin: 2px 0 0; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.lg-full { background: var(--full); } .lg-part { background: var(--part); } .lg-none { background: var(--none); box-shadow: inset 0 0 0 1px #D4D0C8; }

/* matriks */
.mx { display: grid; gap: 4px; overflow-x: auto; }
.mx-row { display: grid; grid-template-columns: minmax(150px, 1.3fr) repeat(8, minmax(34px, 1fr)) 48px; gap: 4px; align-items: center; min-width: 520px; }
.mx-headrow { position: sticky; top: 0; }
.mx-h { display: grid; justify-items: center; gap: 4px; padding: 0 0 6px; color: var(--ink-3); }
.mx-h .ic { width: 16px; height: 16px; }
.mx-h em { font-style: normal; font-size: 11.5px; font-weight: 500; line-height: 1.1; text-align: center; }
.mx-headrow .mx-k, .mx-headrow .mx-p { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); align-self: end; padding-bottom: 6px; }
.mx-k { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 8px 6px 2px; border-radius: 10px; }
a.mx-k:hover { background: var(--ground); }
.mx-k span { display: grid; min-width: 0; }
.mx-k b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-k small { font-size: 12px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-c { position: relative; display: grid; place-items: center; height: 42px; border-radius: 9px; background: var(--none); transition: transform .15s var(--ease), box-shadow .15s; }
.mx-c:hover { transform: scale(1.06); box-shadow: 0 4px 12px -4px rgba(17,26,34,.25); z-index: 1; }
.mx-c.c-full { background: var(--full); }
.mx-c.c-full i { width: 12px; height: 7px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.mx-c.c-part { background: #F6E3BD; box-shadow: inset 0 0 0 1px #E9C67F; }
.mx-c.c-part small { font-size: 12px; font-weight: 600; color: #7A4E00; }
.mx-c.c-none { background: #F1EFEA; box-shadow: inset 0 0 0 1px #E4E0D8; }
.mx-c.c-none i { width: 5px; height: 5px; border-radius: 50%; background: #CFCAC0; }
.mx-p { text-align: right; font-size: 14px; font-weight: 600; color: var(--navy-ink); }

.gaps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.gaps a { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 10px; font-size: 13.5px; font-weight: 500; }
.gaps a:hover { background: var(--ground); }
.gaps .gap-t { display: grid; flex: 1; min-width: 0; }
.gaps small { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.gaps > li > a > .ic { width: 15px; height: 15px; color: var(--ink-3); }
.ok-note { display: flex; gap: 8px; align-items: center; margin: 0; color: var(--green); font-size: 13.5px; font-weight: 500; }

.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feed li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; font-size: 13.5px; line-height: 1.45; }
.feed li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.feed b { font-weight: 600; }
.feed a { color: var(--blue); font-weight: 500; }
.feed small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 13.5px; }
.feed time { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-4); }
.av-dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ground-2); color: var(--ink-2); font: 600 12px/1 var(--body); }
.feed-full li { padding: 12px 0; border-bottom: 1px solid var(--line-2); }

.block { margin-top: 48px; }
.block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.block-head h2 { margin: 0; font-size: 22px; font-weight: 600; color: var(--navy-ink); }
.block-head p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-3); }
.block-head .eyebrow { margin-bottom: 6px; }

.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pf { position: relative; display: grid; gap: 6px; align-content: start; min-height: 168px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .2s, transform .2s var(--ease); }
.pf:hover { border-color: #C9D3DD; box-shadow: var(--shadow-2); transform: translateY(-2px); }
.pf-no { position: absolute; top: 16px; right: 18px; font-size: 13px; color: #8B9299; }
.pf-ic { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px; border-radius: 12px; background: var(--blue-wash); color: var(--navy); }
.pf-ic .ic { width: 20px; height: 20px; }
.pf b { font-size: 16px; line-height: 1.25; font-weight: 600; color: var(--navy-ink); }
.pf small { font-size: 13.5px; color: var(--ink-3); }
.pf-foot { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--ink-3); }

.fnl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.fnl li { padding: 18px 18px 6px 0; }
.fnl li + li { padding-left: 18px; border-left: 1px solid var(--line-2); }
.fnl .num { font-size: 13px; color: var(--blue); }
.fnl b { display: block; margin: 8px 0 6px; font-size: 15.5px; line-height: 1.25; font-weight: 600; color: var(--navy-ink); }
.fnl p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: ph; }
.phases li { position: relative; padding: 18px 18px 20px; border-radius: 16px; background: var(--ground); }
.phases li.is-now { background: var(--navy); color: #fff; }
.phases li.is-now p, .phases li.is-now small { color: rgba(255,255,255,.78); }
.phases li.is-now b { color: #fff; }
.phases .num { font-size: 13px; color: var(--blue); }
.phases li.is-now .num { color: #9CC3EA; }
.phases b { display: block; margin: 6px 0 6px; font-size: 18px; font-weight: 600; color: var(--navy-ink); }
.phases b small { font-size: 13.5px; font-weight: 400; color: var(--ink-3); }
.phases p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.ph-h { margin-top: 12px !important; padding-top: 12px; border-top: 1px solid rgba(17,26,34,.08); }
.phases li.is-now .ph-h { border-top-color: rgba(255,255,255,.18); }
.ph-h span { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }

/* ================= daftar komponen ================= */
.kgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kcard { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; transition: border-color .15s, box-shadow .25s, transform .25s var(--ease); }
.kcard:hover { border-color: #C9D3DD; box-shadow: var(--shadow-2); transform: translateY(-2px); }
.kcard-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.kcard-no { font-size: 13px; color: #8B9299; }
.kcard-ring { position: relative; display: grid; place-items: center; margin-left: auto; width: 52px; height: 52px; }
.kcard-ring .ring { position: absolute; inset: 0; }
.kcard-ring .ring-fg { stroke: var(--k, var(--navy)); }
.kcard-ring b { font-size: 13px; font-weight: 600; }
.kcard h2 { margin: 0; font-size: 18px; line-height: 1.2; font-weight: 600; color: var(--navy-ink); }
.kcard-sub { margin: -4px 0 0; font-size: 13.5px; color: var(--ink-3); }
.kcard-d { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.kcard-bar { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; margin: 6px 0 4px; }
.kcard-bar i { height: 6px; border-radius: 3px; background: var(--none); }
.kcard-bar i.c-full { background: var(--full); } .kcard-bar i.c-part { background: var(--part); }
.kcard-dl { display: grid; gap: 8px; margin: 4px 0 0; font-size: 13px; }
.kcard-dl dt { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-4); }
.kcard-dl dd { margin: 2px 0 0; color: var(--ink); }
.kcard-foot { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-4); }
.kcard:has(.kb-k1) { --k: var(--k1); } .kcard:has(.kb-k2) { --k: var(--k2); } .kcard:has(.kb-k3) { --k: var(--k3); } .kcard:has(.kb-k4) { --k: var(--k4); }
.kcard:has(.kb-k5) { --k: var(--k5); } .kcard:has(.kb-k6) { --k: var(--k6); } .kcard:has(.kb-k7) { --k: var(--k7); } .kcard:has(.kb-k8) { --k: var(--k8); }

/* ================= satu komponen ================= */
.khead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding-bottom: 28px; }
.khead-l { display: flex; gap: 20px; align-items: flex-start; }
.khead h1 { margin: 0; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.05; font-weight: 600; color: var(--navy-ink); }
.khead .lede { margin-top: 10px; }
.khead-pic { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 14px 0 0; font-size: 13px; color: var(--ink-2); }
.khead-pic .ic { width: 15px; height: 15px; color: var(--ink-3); }
.khead-pic small { color: var(--ink-4); }
.khead-r { position: relative; display: grid; place-items: center; width: 88px; height: 88px; }
.khead-r .ring { position: absolute; inset: 0; }
.khead-r b { font-size: 20px; font-weight: 600; line-height: 1; margin-top: -6px; }
.khead-r span { position: absolute; bottom: 22px; font-size: 11.5px; color: var(--ink-3); }

.jump { position: sticky; top: var(--top-h); z-index: 5; display: flex; gap: 4px; margin: 0 -44px 8px; padding: 10px 44px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; }
.jump a { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background .15s; }
.jump a:hover { background: var(--ground); }
.jump a .ic { width: 15px; height: 15px; }
.jump a::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--none); box-shadow: inset 0 0 0 1px #D4D0C8; }
.jump a.j-full::after { background: var(--full); box-shadow: none; }
.jump a.j-part::after { background: var(--part); box-shadow: none; }

.sect { padding: 40px 0 8px; scroll-margin-top: calc(var(--top-h) + 64px); border-radius: 16px; transition: background .6s; }
.sect.flash { background: linear-gradient(var(--blue-wash), transparent 140px); }
.sh { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; margin-bottom: 22px; }
.sh-no { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--navy-ink); color: #fff; font: 600 13px/1 var(--mono); }
.sh h2 { margin: 2px 0 0; font-size: 21px; font-weight: 600; color: var(--navy-ink); }
.sh p { margin: 5px 0 0; font-size: 14px; color: var(--ink-3); max-width: 72ch; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill .ic { width: 14px; height: 14px; }
.pill-full { background: var(--green-wash); color: var(--green); }
.pill-part { background: var(--amber-wash); color: var(--amber); }
.pill-none { background: var(--ground); color: var(--ink-3); }

/* isian */
.fld { position: relative; display: grid; gap: 4px; min-width: 0; }
.fl { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.in { width: 100%; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14.5px; line-height: 1.45; color: var(--ink); transition: border-color .15s, box-shadow .15s, background .15s; }
.in::placeholder { color: #8B9299; font-style: italic; }
.in:hover { border-color: #CFCAC0; }
.in:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20,98,176,.14); }
textarea.in { resize: none; overflow: hidden; min-height: 40px; }
select.in { appearance: none; padding-right: 32px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2369727C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; cursor: pointer; }
.fld.is-empty .in:not(:focus) { background: #FCFBF9; border-style: dashed; }
.in-strong { font-weight: 600; font-size: 15px; }
.in-num { font-family: var(--head); font-variant-numeric: tabular-nums; }
.fld.saved::after { content: 'Tersimpan'; position: absolute; right: 8px; top: -2px; padding: 2px 7px; border-radius: 6px; background: var(--green); color: #fff; font-size: 11.5px; font-weight: 600; animation: saved 1.6s var(--ease) forwards; pointer-events: none; }
.fld:has(.fl).saved::after { top: -2px; }
@keyframes saved { 0% { opacity: 0; transform: translateY(4px); } 15%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.grid-f { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.quote { padding: 20px 22px; border-radius: 16px; background: var(--ground); }
.quote p { margin: 4px 0 14px; font-size: 14.5px; color: var(--ink); }
.quote p:last-child { margin-bottom: 0; }
.q-k { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.stackf { display: grid; gap: 14px; }
.choice { display: flex; gap: 8px; flex-wrap: wrap; }

.prog { display: grid; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.prog-row { display: grid; grid-template-columns: minmax(200px, 1fr) auto; gap: 10px 20px; padding: 16px 18px; align-items: center; }
.prog-row + .prog-row { border-top: 1px solid var(--line-2); }
.prog-row > .fld { grid-column: 1 / -1; }
.prog-n b { font-size: 14.5px; font-weight: 600; }
.prog-n .meta { margin-top: 2px; }
.seg-row { display: flex; flex-wrap: wrap; gap: 4px; }
.seg-row .seg { padding: 6px 11px; font-size: 13.5px; border-radius: 8px; gap: 6px; }
.seg-row .seg:hover { transform: none; }
.seg.sp-lanjut.is-on { background: var(--full); border-color: var(--full); }
.seg.sp-perkuat.is-on { background: var(--blue); border-color: var(--blue); }
.seg.sp-integrasi.is-on { background: var(--k5); border-color: var(--k5); }
.seg.sp-ujicoba.is-on { background: var(--k4); border-color: var(--k4); }
.seg.sp-tunda.is-on { background: #C98A12; border-color: #C98A12; }
.seg.sp-ubah.is-on { background: var(--red); border-color: var(--red); }
.seg.dm-rendah.is-on { background: var(--full); border-color: var(--full); }
.seg.dm-sedang.is-on { background: #C98A12; border-color: #C98A12; }
.seg.dm-tinggi.is-on { background: var(--red); border-color: var(--red); }

/* flagship > activities > anggaran */
.empty-cta { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border: 1px dashed #CFCAC0; border-radius: 16px; background: #FCFBF9; color: var(--ink-2); }
.empty-cta > .ic { width: 24px; height: 24px; color: var(--ink-3); margin-top: 2px; }
.empty-cta b { font-size: 15px; color: var(--ink); }
.empty-cta p { margin: 4px 0 0; font-size: 13.5px; }
.flag { margin-bottom: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; overflow: hidden; box-shadow: var(--shadow-1); }
.flag-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 18px 20px; background: linear-gradient(180deg, #F7F9FC, #fff); border-bottom: 1px solid var(--line-2); }
.flag-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--navy); color: #fff; }
.flag-ic .ic { width: 21px; height: 21px; }
.flag-h .eyebrow { margin: 0 0 2px; font-size: 11.5px; }
.flag-h h3 { margin: 0; font-size: 18px; font-weight: 600; color: var(--navy-ink); }
.flag-tot { display: grid; justify-items: end; }
.flag-tot small { font-size: 12px; color: var(--ink-3); }
.flag-tot b { font-size: 16px; font-weight: 600; }
.flag-entry, .flag-acts { padding: 20px; }
.flag-acts { background: #FCFBF9; border-top: 1px solid var(--line-2); }
.lvl { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.lvl span { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.lvl span::before { content: ''; width: 14px; height: 2px; border-radius: 1px; background: currentColor; }
.lvl small { font-size: 13px; color: var(--ink-3); }
.lvl b { margin-left: auto; font-size: 13px; font-weight: 600; }
.lvl-sm { margin-bottom: 10px; }
.act { margin-bottom: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.act-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.act-h > .ic { color: var(--navy); }
.months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; margin: 14px 0; }
.mo { height: 32px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13px; font-weight: 500; color: var(--ink-3); cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.mo:hover { border-color: var(--blue); color: var(--navy); }
.mo.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.bud { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.bud-t { display: grid; gap: 6px; margin-bottom: 10px; }
.bud-r { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(120px, .8fr) minmax(150px, .9fr) auto; gap: 6px; align-items: center; }
.addrow { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.addrow .in { flex: 1; }
.addrow select.in { flex: 0 1 220px; }
.addrow-bud .in-num { flex: 0 1 170px; }
.cands { margin-top: 12px; padding: 18px 20px; border-radius: 16px; background: var(--ground); }
.cands-h { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.cands ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cands li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 14px; border-radius: 12px; background: #fff; }
.cands li.is-off { opacity: .62; }
.cand-n { font-size: 14.5px; font-weight: 500; }
.cand-a { display: flex; gap: 4px; flex: none; }

.bsum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; }
.bsum-n { display: grid; gap: 4px; }
.bsum-n span { font-size: 13.5px; color: var(--ink-3); }
.bsum-n b { font-size: 24px; font-weight: 600; color: var(--navy-ink); }
.bsum-n small { font-size: 13px; color: var(--ink-3); }
.meter { grid-column: 1 / -1; position: relative; height: 28px; border-radius: 9px; background: var(--ground); overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; background: var(--navy); border-radius: 9px; }
.meter.is-over i { background: var(--red); }
.meter span { position: relative; display: block; padding: 0 10px; line-height: 28px; font-size: 13px; font-weight: 600; color: #fff; mix-blend-mode: difference; }
.bsum-src { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bsum-src li { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: var(--ground); }
.bsum-src span { font-size: 13px; color: var(--ink-3); }
.bsum-src b { font-size: 14px; font-weight: 600; }

/* KPI */
.yrs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; padding: 5px; border-radius: 14px; background: var(--ground); }
.yrs a { display: grid; justify-items: center; padding: 8px 6px; border-radius: 10px; color: var(--ink-2); transition: background .15s; }
.yrs a:hover { background: rgba(255,255,255,.6); }
.yrs a.is-on { background: #fff; box-shadow: var(--shadow-1); color: var(--navy-ink); }
.yrs .num { font-size: 16px; font-weight: 600; }
.yrs small { font-size: 12.5px; color: var(--ink-3); }
.kpis { display: grid; gap: 10px; }
.kpi { padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; }
.kpi-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.kpi-h b { font-size: 15px; font-weight: 600; flex: 1 1 260px; }
.kpi-h .icon-btn { margin-left: auto; }
.tl { padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.tl-keluaran { background: var(--blue-wash); color: var(--blue); }
.tl-jangkauan { background: #E5F2F2; color: #1C6366; }
.tl-hasil { background: var(--green-wash); color: var(--green); }
.tl-organisasi { background: #EFEAF3; color: #5F3E73; }

/* risiko */
.risks { display: grid; gap: 10px; }
.risk { padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; }
.risk-h { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; margin-bottom: 14px; }

/* SWOT */
.swot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sw { display: flex; flex-direction: column; padding: 18px; border-radius: 20px; background: var(--ground); min-width: 0; }
.sw header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; margin-bottom: 14px; }
.sw-l { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font: 700 18px/1 var(--head); color: #fff; }
.sw-S .sw-l { background: var(--full); } .sw-W .sw-l { background: #C98A12; } .sw-O .sw-l { background: var(--blue); } .sw-T .sw-l { background: var(--red); }
.sw h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--navy-ink); }
.sw header p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-3); }
.sw-n { font-size: 20px; font-weight: 600; color: var(--ink-3); }
.sw ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.sw li { position: relative; padding: 11px 38px 11px 14px; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(17,26,34,.04); animation: rise .35s var(--ease) both; }
.sw li p { margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.sw li .meta { margin-top: 4px; }
.sw li .meta a { color: var(--blue); }
.sw li .icon-btn { position: absolute; top: 6px; right: 6px; opacity: 0; transition: opacity .15s; }
.sw li:hover .icon-btn, .sw li .icon-btn:focus-visible { opacity: 1; }
.sw li.sw-empty { padding: 12px 14px; background: none; box-shadow: none; border: 1px dashed #D4D0C8; animation: none; }
.sw-add { display: flex; gap: 6px; margin-top: auto; }
.sw-add textarea { flex: 1; }
.sw-add select { flex: 0 0 140px; }
.sw-add .btn { align-self: flex-start; height: 40px; width: 40px; padding: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }

/* flagship APEKSI */
.plist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.plat { display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; position: relative; }
.plat header { display: flex; gap: 14px; align-items: center; }
.plat header .pf-ic { margin: 0; }
.plat h2 { margin: 0; font-size: 19px; line-height: 1.2; font-weight: 600; color: var(--navy-ink); }
.plat h2 a:hover { color: var(--blue); }
.plat header p { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); }
.plat-d { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.plat-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 0; padding: 16px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.plat-dl dt { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); }
.plat-dl dd { margin: 4px 0 0; font-size: 13.5px; }
.plat-dl dd a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.plat-linked ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.plat-linked a { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.plat-linked a:hover { background: var(--ground); }
.plat-linked a span { display: grid; }
.plat-linked small { font-size: 13px; color: var(--ink-3); font-weight: 400; }
.plat-full { border: 0; padding: 0; }
.plat-full h2 { font-size: clamp(26px, 3vw, 36px); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; counter-reset: fl; }
.flow li { position: relative; padding: 14px 12px 12px; border-radius: 12px; background: var(--ground); font-size: 13px; font-weight: 600; counter-increment: fl; }
.flow li::before { content: '0' counter(fl); display: block; margin-bottom: 4px; font: 500 12px/1 var(--mono); color: var(--blue); }

/* peta jalan */
.phases-big li { padding: 22px; }
.hundred { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 20fr 20fr 30fr 30fr; gap: 6px; }
.hundred li { padding: 18px; border-radius: 16px; background: var(--ground); }
.hundred li::before { content: ''; display: block; width: 28px; height: 3px; margin-bottom: 12px; border-radius: 2px; background: #CFCAC0; }
.hundred li.is-now { background: var(--blue-wash); }
.hundred li.is-now::before { background: var(--blue); }
.hundred .num { font-size: 13px; color: var(--blue); }
.hundred b { display: block; margin: 6px 0; font-size: 16px; font-weight: 600; color: var(--navy-ink); }
.hundred p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.diff { margin-top: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); font-size: 13.5px; }
.diff summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; color: var(--ink-2); list-style: none; }
.diff summary::-webkit-details-marker { display: none; }
.diff summary .ic { width: 16px; height: 16px; color: var(--amber); }
.diff ol { margin: 10px 0 0; padding-left: 22px; color: var(--ink-2); }
.tw { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tw > div { padding: 18px; border: 1px solid var(--line); border-radius: 16px; }
.tw .num { font-size: 13px; font-weight: 600; color: var(--blue); }
.tw b { display: block; margin: 6px 0; font-size: 15px; font-weight: 600; }
.tw p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.rhythm { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.rhythm > div { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: 16px; background: var(--ground); }
.rhythm .tag { justify-self: start; background: #fff; }
.rhythm b { font-size: 14.5px; font-weight: 600; }
.rhythm p { margin: 0; font-size: 13px; color: var(--ink-2); }
.kpisek { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kpisek li { padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.kpisek b { font-size: 14.5px; }
.kpisek p { margin: 4px 0; font-size: 13.5px; color: var(--ink-2); }
.kpisek small { font-size: 13px; color: var(--ink-3); }
.rules { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 8px; }
.rules li { display: flex; gap: 10px; font-size: 14.5px; }
.rules .ic { color: var(--full); margin-top: 3px; }
.spdef { display: grid; gap: 10px; margin: 0; }
.spdef > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: start; }
.spdef dt .seg { padding: 5px 10px; font-size: 13px; border-radius: 8px; cursor: default; }
.spdef dd { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.spdef em { display: block; font-style: normal; color: var(--ink-3); font-size: 13.5px; margin-top: 2px; }

/* riwayat */
.day { margin-bottom: 28px; }
.day-h { position: sticky; top: var(--top-h); z-index: 2; margin: 0; padding: 10px 0; background: #fff; font-size: 14px; font-weight: 600; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.day-h .num { padding: 2px 8px; border-radius: 6px; background: var(--ground); font-size: 13px; }

/* ================= laptop kecil ================= */
@media (max-width: 1360px) {
  .kgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile { grid-column: span 2; }
  .tile:nth-child(n+4) { grid-column: span 3; }
  .rhythm { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1240px) {
  .split { grid-template-columns: 1fr; }
  .side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mx-row { grid-template-columns: minmax(150px, 1.2fr) repeat(8, minmax(34px, 1fr)) 48px; min-width: 520px; }
  .fnl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fnl li:nth-child(4) { padding-left: 0; border-left: 0; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ================= tablet: rail ikon ================= */
@media (max-width: 1179px) {
  :root { --nav-w: 76px; }
  .nav { padding: 16px 10px; align-items: center; }
  .nav-brand { padding: 0; }
  .nb-full, .nav-tag, .nav-g, .nav-foot, .nav a span { display: none; }
  .nb-mark { display: block; }
  .nav nav { margin-top: 18px; }
  .nav ul { gap: 4px; }
  .nav ul + .nav-g + ul, .nav nav > ul:nth-of-type(2) { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
  .nav a { width: 52px; height: 48px; justify-content: center; padding: 0; border-radius: 14px; }
  .nav a .ic { width: 21px; height: 21px; }
  .nav a::after { content: attr(title); position: absolute; left: calc(100% + 10px); top: 50%; transform: translate(-4px, -50%); padding: 6px 10px; border-radius: 8px; background: var(--navy-ink); color: #fff; font-size: 13.5px; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 40; }
  .nav a:hover::after, .nav a:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
  .nav { overflow: visible; }
  .stack { padding: 4px 16px 48px; }
  .sheet { padding: 28px 28px 56px; }
  .jump { margin: 0 -28px 8px; padding: 10px 28px; }
  .kgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phases, .tw { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plist { grid-template-columns: 1fr; }
  .hundred { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ================= HP ================= */
@media (max-width: 767px) {
  :root { --top-h: 56px; }
  .shell { display: block; }
  .nav { display: none; }
  .top { padding: 0 12px 0 14px; gap: 8px; background: #F4F3EF; }
  .top-brand { display: block; }
  .top-brand img { height: 30px; }
  .sync-chip span { display: none; }
  .sync-chip { width: 36px; padding: 0; justify-content: center; }
  .me { padding: 3px; border-color: transparent; background: none; }
  .me-t, .me > .ic { display: none; }
  .menu { position: fixed; left: 12px; right: 12px; top: 60px; width: auto; }
  .stack { padding: 2px 8px calc(84px + env(safe-area-inset-bottom)); }
  .sheet { padding: 22px 16px 40px; border-radius: 18px; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(251,250,248,.94); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 3px; padding: 7px 2px 5px; border: 0; border-radius: 12px; background: none; color: var(--ink-3); font-size: 12px; font-weight: 500; cursor: pointer; }
  .tabbar .ic { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--navy); }
  .tabbar a[aria-current="page"] .ic { stroke-width: 2.2; }
  .tabbar button[aria-expanded="true"] { color: var(--navy); }
  .msheet { position: fixed; inset: 0; z-index: 34; display: block; }
  .msheet[hidden] { display: none; }
  .msheet-scrim { position: absolute; inset: 0; background: rgba(10,37,64,.32); animation: fade .2s; }
  .msheet-panel { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(84px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #fff; animation: up .32s var(--ease); }
  .msheet-grip { display: block; width: 40px; height: 4px; margin: 0 auto 10px; border-radius: 2px; background: var(--line); }
  .msheet ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .msheet a { display: grid; justify-items: center; gap: 8px; padding: 16px 6px; border-radius: 16px; background: var(--ground); font-size: 13.5px; font-weight: 500; text-align: center; }
  .msheet a .ic { width: 22px; height: 22px; color: var(--navy); }
  .msheet a[aria-current="page"] { background: var(--navy); color: #fff; }
  .msheet a[aria-current="page"] .ic { color: #fff; }
  @keyframes up { from { transform: translateY(100%); } to { transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }

  .hero { grid-template-columns: 1fr; gap: 20px; padding-bottom: 24px; }
  .hero-score { width: 104px; height: 104px; justify-self: start; }
  .hero-score-n b { font-size: 26px; }
  .hero-score-n b small { font-size: 13px; }
  .hero-score-n span { font-size: 11px; max-width: 70px; }
  .tile-s { white-space: normal; }
  .display { font-size: 40px; }
  .lede { font-size: 15px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 20px 0 24px; }
  .tile { padding: 14px; }
  .tile b { font-size: 24px; }
  .tile, .tile:nth-child(n+4) { grid-column: auto; }
  .tile-pagu { grid-column: 1 / -1; }
  .panel { padding: 16px; border-radius: 16px; }
  .side { grid-template-columns: 1fr; }
  .mx-row { grid-template-columns: 112px repeat(8, minmax(28px, 1fr)) 40px; min-width: 0; gap: 3px; }
  .mx-h em { display: none; }
  .mx-k { gap: 6px; padding: 4px 0; }
  .mx-k .kb { display: none; }
  .mx-k b { font-size: 13.5px; }
  .mx-k small { display: none; }
  .mx-c { height: 34px; border-radius: 7px; }
  .mx-c.c-part small { font-size: 10.5px; }
  .mx-p { font-size: 13px; }
  .block { margin-top: 36px; }
  .block-head h2 { font-size: 19px; }
  .pf-grid, .kgrid { grid-template-columns: 1fr; }
  .fnl { grid-template-columns: 1fr; }
  .fnl li, .fnl li + li { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line-2); }
  .phases, .tw, .rhythm, .hundred { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .khead { grid-template-columns: 1fr auto; gap: 14px; align-items: start; }
  .khead-l { flex-direction: column; gap: 14px; }
  .kb-lg { width: 48px; height: 48px; border-radius: 14px; }
  .khead-r { width: 72px; height: 72px; }
  .khead-r .ring { width: 72px; height: 72px; }
  .khead-r b { font-size: 16px; }
  .khead-r span { bottom: 16px; }
  .jump { margin: 0 -16px 4px; padding: 8px 16px; }
  .jump a span { display: none; }
  .jump a { padding: 8px 10px; }
  .sect { padding-top: 30px; }
  .sh { grid-template-columns: auto minmax(0, 1fr); }
  .sh .pill { grid-column: 2; justify-self: start; }
  .sh h2 { font-size: 18px; }
  .two, .grid-f, .grid-3, .grid-4, .bsum, .swot, .plat-dl { grid-template-columns: 1fr; }
  .prog-row { grid-template-columns: 1fr; padding: 14px; }
  .flag-h { grid-template-columns: auto minmax(0, 1fr) auto; padding: 14px; }
  .flag-tot { grid-column: 2; grid-row: 2; justify-items: start; }
  .flag-entry, .flag-acts { padding: 14px; }
  .act { padding: 12px; }
  .months { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bud-r { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'u u' 'j x' 's s'; padding: 10px; border-radius: 12px; background: var(--ground); }
  .bud-r > .fld:nth-child(1) { grid-area: u; } .bud-r > .fld:nth-child(2) { grid-area: j; } .bud-r > .fld:nth-child(3) { grid-area: s; } .bud-r > .icon-btn { grid-area: x; }
  .addrow { flex-wrap: wrap; }
  .addrow .in, .addrow select.in, .addrow-bud .in-num { flex: 1 1 100%; }
  .addrow .btn { flex: 1 1 100%; height: 40px; }
  .cands li { flex-direction: column; align-items: stretch; }
  .cand-a .btn { flex: 1; }
  .bsum-src { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .risk-h { grid-template-columns: 1fr auto; }
  .risk-h .seg-row { grid-column: 1 / -1; grid-row: 2; }
  .spdef > div { grid-template-columns: 1fr; gap: 4px; }
  .filter { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 18px; padding: 0 16px 4px; scrollbar-width: none; }
  .filter .chip { flex: none; }
  .sw-add { flex-wrap: wrap; }
  .sw-add select { flex: 1 1 100%; }
  .sw li .icon-btn { opacity: 1; }
}

@media (hover: none) { .sw li .icon-btn { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .sync-chip[data-state="busy"] i, .sw li, .msheet-panel, .msheet-scrim { animation: none; }
  .ring-fg { transition: none; }
}

/* lapisan bertumpuk hanya untuk Perhelatan, Program, Surat, Sponsor; modul Repositioning memakai remah */
.stack[data-kind="komp"] .strips, .stack[data-kind="flag"] .strips { display: none; }
