/* MPB-PULSE · styles — soft-shell design: rounded canvas, icon rail, map hero, black stat pills, gold accent */
:root {
  --page: #9dbfc5; --shell1: #edf3eb; --shell2: #fbfaf6; --shell3: #f7f2ec;
  --brand: #111111; --brand2: #2f8f86; --gold: #f2a516; --gold-soft: #fbe3b4;
  --ink: #141414; --muted: #7b807d; --line: #ebeeea; --card: #ffffff; --tile: #f1f5f2;
  --green: #2f9e5b; --amber: #e39a12; --red: #d9473c; --grey: #a3aaa6; --r: 22px;
  --sea: #cfe2e4; --land: #eef1ec;
  font-family: "Outfit", "Segoe UI", system-ui, -apple-system, Arial, sans-serif; font-size: 14px; color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); min-height: 100vh; padding: 26px; }
a { color: var(--ink); text-decoration: none; } a:hover { color: var(--brand2); }
h1 { font-size: 26px; font-weight: 500; margin: 0 0 4px; letter-spacing: -.01em; } h2 { font-size: 20px; font-weight: 500; margin: 0; } h3 { font-size: 15px; font-weight: 500; margin: 0; } h4 { margin: 12px 0 6px; font-size: 13px; font-weight: 600; }
.muted { color: var(--muted); } .small { font-size: 12px; } .r { text-align: right; } .nowrap { white-space: nowrap; } .mt { margin-top: 12px; } .mb { margin-bottom: 10px; }
.c-green { color: var(--green); } .c-amber { color: var(--amber); } .c-red { color: var(--red); }
code { background: var(--tile); padding: 1px 6px; border-radius: 6px; font-size: 12px; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }

/* ===== shell ===== */
.shell { display: flex; min-height: calc(100vh - 52px); border-radius: 40px; background: linear-gradient(150deg, var(--shell1) 0%, var(--shell2) 45%, var(--shell3) 100%); box-shadow: 0 30px 80px rgba(20, 50, 55, .25); overflow: clip; }
#sidebar { width: 96px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 24px 0 20px; position: sticky; top: 26px; height: calc(100vh - 52px); overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
#sidebar::-webkit-scrollbar { display: none; }
#sidebar .logo { flex-shrink: 0; }
#sidebar .logo svg { width: 46px; height: 46px; display: block; }
.rail { display: flex; flex-direction: column; gap: 10px; margin: auto 0; align-items: center; padding: 6px 0; }
.rail a, .rail-b a { position: relative; flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .75); color: #5f6662; box-shadow: 0 1px 0 rgba(0, 0, 0, .03); transition: .15s; }
.rail a svg, .rail-b a svg { width: 21px; height: 21px; }
.rail a:hover, .rail-b a:hover { background: #fff; color: var(--ink); }
.rail a.on, .rail-b a.on { background: var(--brand); color: #fff; }
.rail .sep { width: 18px; height: 1px; background: #d9ded9; margin: 2px 0; }
.rail-b { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.rail-b .me { background: var(--brand); color: #fff; font-weight: 600; font-size: 13px; }
#tip { position: fixed; z-index: 90; background: var(--brand); color: #fff; font-size: 12px; line-height: 1.4; padding: 8px 12px; border-radius: 9px; white-space: normal; max-width: 300px; width: max-content; pointer-events: none; opacity: 0; transform: translateX(-4px); transition: opacity .12s, transform .12s; }
#tip.show { opacity: 1; transform: none; }
#tip::before { content: ''; position: absolute; left: -5px; top: 50%; margin-top: -5px; border: 5px solid transparent; border-left: 0; border-right-color: var(--brand); }
@media (max-height: 860px) { .rail { gap: 7px; } .rail a, .rail-b a { width: 40px; height: 40px; } .rail a svg, .rail-b a svg { width: 19px; height: 19px; } #sidebar .logo svg { width: 42px; height: 42px; } #sidebar { gap: 12px; } }
@media (max-height: 700px) { .rail .sep { display: none; } .rail { gap: 5px; } .rail a, .rail-b a { width: 36px; height: 36px; } }
.dotb { position: absolute; top: -3px; right: -5px; background: var(--gold); color: #111; font-size: 10px; font-weight: 700; border-radius: 10px; padding: 1px 5px; border: 2px solid #fff; }
main { flex: 1; min-width: 0; padding: 24px 28px 28px 0; }
#topbar { display: flex; align-items: center; gap: 12px; padding: 0 2px 16px; }
.tb-title { font-size: 15px; } .tb-app { font-weight: 600; }
.tb-r { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.bell { position: relative; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; } .bell svg { width: 19px; height: 19px; }
.btn.burger { display: none; }
body.is-home #topbar { display: none; }
#view { max-width: 1600px; }
.page-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-h p { margin: 6px 0 0; max-width: 840px; }
.crumb { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .wrap { flex-wrap: wrap; }
.sec-t { margin: 22px 0 10px; }

/* ===== controls ===== */
.btn { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 12px; cursor: pointer; font: inherit; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; transition: .15s; }
.btn:hover { border-color: #c9cfca; color: var(--ink); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; } .btn.primary:hover { background: #2b2b2b; color: #fff; }
.btn.danger { color: var(--red); border-color: #f3d0cc; } .btn.ghost { background: transparent; }
.btn.xs { padding: 3px 9px; font-size: 12px; margin-right: 4px; border-radius: 9px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
select, input, textarea { font: inherit; border: 1px solid var(--line); border-radius: 12px; padding: 7px 10px; background: #fff; color: var(--ink); max-width: 100%; }
textarea { width: 100%; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #cfe2e4; border-color: #b9d3d6; }
.pillsel { appearance: none; -webkit-appearance: none; padding: 10px 34px 10px 16px; border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23333'/%3E%3C/svg%3E") no-repeat right 14px center; border: 1px solid #e3e7e3; min-width: 140px; }
.chk { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }

/* ===== cards / tiles ===== */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--card); border-radius: 18px; padding: 16px 18px; position: relative; overflow: hidden; }
.tile::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: #d9ded9; }
.tile.b-green::before { background: var(--green); } .tile.b-amber::before { background: var(--amber); } .tile.b-red::before { background: var(--red); }
.t-l { font-size: 13px; color: var(--muted); } .t-v { font-size: 30px; font-weight: 300; margin: 6px 0 2px; letter-spacing: -.02em; } .t-s { font-size: 12px; color: var(--muted); }
.card { background: var(--card); border-radius: var(--r); margin-bottom: 16px; overflow: hidden; }
.card.hl { background: #fff8e8; }
.card-h { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 6px; gap: 8px; }
.card-h h3 { font-size: 17px; }
.card-x a { font-size: 13px; color: var(--muted); }
.card-b { padding: 12px 22px 20px; }
.grid { display: grid; gap: 16px; } .g-2 { grid-template-columns: 1fr 1fr; } .g-2-1 { grid-template-columns: 2fr 1fr; } .g-1-2 { grid-template-columns: 1fr 2fr; } .g-1-1 { grid-template-columns: 1fr 1fr; }
.grid > * { min-width: 0; }
.empty { color: var(--muted); padding: 24px; text-align: center; border: 1px dashed #dfe4df; border-radius: 16px; background: #fbfcfb; }
.callout { background: var(--tile); border-left: 4px solid var(--gold); padding: 12px 14px; border-radius: 12px; margin-top: 12px; font-size: 13px; }
.demo-note { text-align: center; color: var(--muted); font-size: 12px; margin: 6px 0 0; }

/* ===== pills ===== */
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #eef1ee; color: #444; white-space: nowrap; }
.pill.green, .sev-low { background: #dff2e5; color: #1f6b3d; } .pill.amber, .sev-medium { background: #fdf0d4; color: #8a5a00; }
.pill.red, .sev-high { background: #fbe1de; color: #9b2a21; } .pill.grey { background: #f0f2f0; color: #6b706d; }
.sev-critical { background: #111; color: #fff; } .sev-info { background: #e3eff0; color: #29606a; }
.st-submitted { background: #e3eff0; color: #29606a; } .st-verified { background: #ece8fb; color: #4e3aa0; } .st-approved, .st-active, .st-held { background: #dff2e5; color: #1f6b3d; }
.st-returned, .st-missing { background: #fbe1de; color: #9b2a21; } .st-superseded, .st-closed { background: #f0f2f0; color: #6b706d; } .st-scheduled { background: #fdf0d4; color: #8a5a00; }
.tag { display: inline-block; font-size: 10px; padding: 2px 7px; border-radius: 6px; background: var(--tile); color: #3d5c58; font-weight: 600; margin: 0 2px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot.green { background: var(--green); } .dot.amber { background: var(--amber); } .dot.red { background: var(--red); } .dot.grey { background: var(--grey); }

/* ===== tables ===== */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 8px; border-bottom: 1px solid #f3f5f3; vertical-align: top; }
.tbl tr:hover td { background: #fafcfa; }
.tbl a { font-weight: 500; }
.heat-t td.c { text-align: center; font-weight: 600; }
.rank { font-size: 18px; }
.riskbar { position: relative; width: 96px; height: 18px; background: #f1f3f1; border-radius: 9px; overflow: hidden; }
.riskbar div { height: 100%; border-radius: 9px; } .riskbar span { position: absolute; inset: 0; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.mini { position: relative; width: 96px; height: 7px; background: #e9ece9; border-radius: 4px; overflow: visible; margin-bottom: 2px; }
.mini div { height: 100%; background: var(--gold); border-radius: 4px; } .mini i { position: absolute; top: -3px; width: 2px; height: 13px; background: var(--ink); }
.mini.big { width: 100%; height: 10px; }

/* ===== charts ===== */
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: #eff2ef; } .chart .ax { font-size: 11px; fill: #8b908d; font-family: inherit; } .chart .marker { stroke: var(--gold); stroke-dasharray: 4 3; stroke-width: 2; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 12px; height: 3px; margin-right: 5px; vertical-align: middle; }
.hbars { display: flex; flex-direction: column; gap: 9px; }
.hbar { display: grid; grid-template-columns: minmax(140px, 210px) 1fr 44px; gap: 10px; align-items: center; font-size: 12px; }
.hbar .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hbar .val { text-align: right; font-weight: 600; }
.hbar .track { background: #f1f3f1; height: 10px; border-radius: 5px; overflow: hidden; } .hbar .fill { height: 100%; border-radius: 5px; }
.spark { width: 110px; height: 30px; }
.ring-bg { fill: none; stroke: #eef1ee; stroke-width: 8; } .ring-t { font-size: 17px; font-weight: 500; fill: var(--ink); font-family: inherit; }

/* ===== HOME: map hero ===== */
.map-card { position: relative; border-radius: 28px; overflow: hidden; background: var(--sea); height: clamp(460px, 62vh, 680px); margin-bottom: 14px; }
.map-wrap { position: absolute; inset: 0; }
#mymap { width: 100%; height: 100%; display: block; }
#mymap .st { stroke: #fff; stroke-width: .9; cursor: pointer; transition: fill .2s, opacity .2s; vector-effect: non-scaling-stroke; }
#mymap .st:hover { filter: brightness(.96); stroke: #333; stroke-width: 1.2; }
#mymap .st.sel { stroke: #111; stroke-width: 2; }
#mymap .st.dim { opacity: .72; }
#mymap .lbl { font-family: inherit; font-size: 8.5px; letter-spacing: .12em; fill: #5d6561; pointer-events: none; font-weight: 600; paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 2.4px; stroke-linejoin: round; }
#mymap .lbl.sm { font-size: 6px; }
#mymap .sea { font-family: inherit; font-size: 12px; letter-spacing: .35em; fill: #8fb3b7; font-weight: 500; }
#mymap .sea.big { font-size: 22px; fill: #b4cbcd; letter-spacing: .6em; }
#mymap .region { font-family: inherit; font-size: 9px; letter-spacing: .4em; fill: #9aa29e; }
#mymap .mk { cursor: pointer; }
#mymap .halo { fill: rgba(242, 165, 22, .28); transition: .2s; } #mymap .halo.on { fill: rgba(17, 17, 17, .12); }
#mymap .core { fill: var(--gold); stroke: #fff; stroke-width: 1.4; } #mymap .core-sel { fill: #111; stroke: #fff; stroke-width: 2; }
.map-top { position: absolute; top: 20px; left: 20px; right: 20px; display: flex; gap: 12px; z-index: 3; }
.search { position: relative; flex: 1; display: flex; align-items: center; background: #fff; border-radius: 12px; border: 1px solid #e3e7e3; padding: 0 14px; }
.search .i { width: 18px; height: 18px; color: #888; flex-shrink: 0; }
.search input { border: none; outline: none; flex: 1; padding: 11px 10px; background: transparent; font-size: 15px; }
.s-res { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .12); overflow: hidden; }
.s-res:empty { display: none; }
.s-res a { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid #f3f5f3; font-size: 13px; }
.s-res a:hover { background: var(--tile); } .s-res i { font-style: normal; width: 18px; text-align: center; } .s-res small { margin-left: auto; color: var(--muted); }
.map-pills { position: absolute; display: flex; gap: 4px; z-index: 2; opacity: 0; transition: opacity .25s; pointer-events: none; }
.map-pills.show { opacity: 1; }
.mp { background: #0f0f0f; color: #fff; border-radius: 18px; padding: 14px 20px 12px; text-align: center; min-width: 120px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.mp b { display: block; font-size: 34px; font-weight: 300; letter-spacing: -.02em; line-height: 1.1; }
.mp span { font-size: 12px; color: #b9bdbb; } .mp.wide b { font-size: 34px; }
.map-legend { position: absolute; right: 20px; top: 78px; z-index: 3; display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.92); border-radius: 12px; padding: 8px 12px; font-size: 12px; color: #555; }
.map-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 4px; vertical-align: -2px; border: 1px solid rgba(0,0,0,.06); }
.map-legend .grad { width: 70px; height: 10px; border-radius: 5px; display: inline-block; vertical-align: -1px; }
@media (max-width: 1300px) { .mp { padding: 10px 14px 9px; min-width: 96px; } .mp b, .mp.wide b { font-size: 26px; } .mp span { font-size: 11px; } }
@media (max-width: 1100px) { .map-legend { display: none; } }
.map-bl { position: absolute; left: 20px; bottom: 20px; display: flex; gap: 10px; z-index: 3; flex-wrap: wrap; }
.seg { display: flex; background: rgba(255, 255, 255, .92); border-radius: 12px; padding: 4px; gap: 2px; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }
.seg button { border: none; background: transparent; padding: 7px 12px; border-radius: 9px; font: inherit; font-size: 13px; cursor: pointer; color: #555; }
.seg button.on { background: var(--brand); color: #fff; }
.seg-x { border: none; background: #fff; border-radius: 12px; padding: 8px 14px; font: inherit; cursor: pointer; }
.help-fab { position: absolute; right: 24px; bottom: 24px; width: 64px; height: 64px; border-radius: 50%; background: #0f0f0f; color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 300; z-index: 3; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.help-fab:hover { color: var(--gold); }

/* ===== HOME: cards row ===== */
.home-row { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.home-row.r2 { grid-template-columns: 1.3fr 1fr 1fr; } .home-row.r2 .card { margin: 0; }
.hcard { background: #fff; border-radius: var(--r); padding: 24px 26px; min-height: 330px; position: relative; overflow: hidden; }
.loc-h { display: flex; justify-content: space-between; align-items: center; }
.loc-h h2 { font-size: 26px; font-weight: 400; }
.fav { border: none; background: none; cursor: pointer; color: #ccc; padding: 4px; } .fav .i { width: 24px; height: 24px; } .fav.on { color: var(--gold); } .fav.on .i { fill: var(--gold); }
.loc-a { font-size: 16px; margin: 14px 0 6px; }
.loc-b { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; flex-wrap: wrap; }
.mini-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px -14px -12px; }
.mt-t { background: var(--tile); border-radius: 16px; padding: 14px; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; }
.mt-t .ic-c { width: 38px; height: 38px; padding: 9px; background: #fff; border-radius: 50%; color: #666; }
.mt-t span { font-size: 14px; color: #333; display: block; } .mt-t b { font-size: 44px; font-weight: 300; letter-spacing: -.03em; line-height: 1.05; }
.hcard.pic { padding: 0; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.pic-tag { position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(6px); border-radius: 16px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.pic-tag b { font-weight: 500; } .pic-tag span { font-size: 12px; color: var(--muted); }
.g-h { display: flex; justify-content: space-between; gap: 10px; } .g-h h2 { font-size: 26px; font-weight: 400; } .g-h p { color: var(--muted); max-width: 200px; margin: 12px 0 0; }
.avatars { display: flex; } .av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; border: 3px solid #fff; margin-left: -12px; font-size: 13px; }
.av.a0 { background: #c08a5a; } .av.a1 { background: #2f8f86; } .av.a2 { background: #6d5bb0; }
.g-svg { position: absolute; left: 6%; right: 6%; bottom: -2px; width: 88%; }
.g-bg { fill: none; stroke: #f1f3f1; stroke-width: 22; } .g-fg { fill: none; stroke: var(--gold); stroke-width: 22; }
.g-v { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; } .g-v b { display: block; font-size: 54px; font-weight: 400; letter-spacing: -.03em; line-height: 1; } .g-v span { color: var(--muted); font-size: 15px; }
.sec-list { display: flex; flex-direction: column; }
.sl { display: grid; grid-template-columns: 34px minmax(0,1fr) 80px 74px 112px; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid #f3f5f3; }
.sl-id { font-weight: 700; color: var(--c); } .sl-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; } .sl-v { text-align: right; font-weight: 500; }

/* ===== sector cards (sector view) ===== */
.sector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 16px; }
.sector-card { background: #fff; border-radius: 18px; padding: 16px; border-left: 5px solid var(--c); display: flex; flex-direction: column; gap: 8px; }

/* ===== tree ===== */
.tree details { margin: 4px 0; } .tree summary { cursor: pointer; padding: 8px 10px; border-radius: 12px; list-style: none; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tree summary::-webkit-details-marker { display: none; }
.tree summary:hover { background: #f7f9f7; }
.tree-s > summary { background: var(--tile); font-size: 14px; }
.tree-i { margin-left: 22px; border-left: 2px solid var(--line); padding-left: 6px; }
.tree-k { margin-left: 36px; padding: 5px 8px; font-size: 13px; border-left: 2px dotted var(--line); }
.tree-k.impact { margin-left: 22px; background: #eef7f5; border-radius: 10px; }
.tree-k.placeholder { color: var(--muted); font-style: italic; background: repeating-linear-gradient(45deg, #fafbfa, #fafbfa 8px, #f2f4f2 8px, #f2f4f2 16px); border-radius: 12px; padding: 14px; }
.tree-act { margin-left: auto; }

/* ===== tabs ===== */
.tabs { display: inline-flex; gap: 2px; background: #fff; padding: 4px; border-radius: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 8px 16px; color: var(--muted); border-radius: 10px; } .tabs a.on { background: var(--brand); color: #fff; } .tabs a:hover:not(.on) { color: var(--ink); background: var(--tile); }

/* ===== misc blocks ===== */
.kpi-block { border-bottom: 1px solid #f3f5f3; padding: 10px 0 14px; } .kb-h { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; } .kb-h .r { margin-left: auto; }
.alist { list-style: none; padding: 0; margin: 0; } .alist li { padding: 10px 0; border-bottom: 1px solid #f3f5f3; }
.nlist { list-style: none; padding: 0; margin: 0; } .nlist li { padding: 12px 14px; border-radius: 16px; margin-bottom: 8px; background: var(--tile); }
.nlist li.read { opacity: .55; } .n-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; } .n-meta { margin-top: 4px; } .n-act { margin-top: 8px; }
.ladder li { margin-bottom: 6px; }
.drop { display: grid; place-items: center; border: 2px dashed #c9d9d4; border-radius: 18px; padding: 26px; text-align: center; background: #f7faf8; cursor: pointer; margin-bottom: 8px; }
.drop input { display: none; } .drop:hover { background: var(--tile); }
.chat { height: 360px; overflow-y: auto; background: var(--tile); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.msg { padding: 10px 14px; border-radius: 16px; max-width: 88%; font-size: 13px; } .msg ul { margin: 6px 0; padding-left: 18px; }
.msg.me { align-self: flex-end; background: var(--brand); color: #fff; } .msg.ai { background: #fff; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; } .chip { border: 1px solid #e3e7e3; background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 12px; cursor: pointer; font-family: inherit; } .chip:hover { border-color: var(--gold); }
.chat-in { display: flex; gap: 8px; } .chat-in input { flex: 1; }
.heatmap { display: flex; flex-direction: column; gap: 6px; } .hm-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .hm-l { width: 34px; font-weight: 700; }
.hm-c { width: 64px; height: 46px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; color: #1f2937; } .hm-c b { font-size: 15px; } .hm-c:hover { outline: 2px solid var(--ink); }
.who-list { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow: auto; } .who-list .btn { justify-content: flex-start; }

/* ===== forms / modal ===== */
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .grid-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); } .grid-form label.full, .grid-form .full { grid-column: 1 / -1; }
.grid-form small { color: var(--muted); font-size: 11px; }
.mback { position: fixed; inset: 0; background: rgba(20, 40, 44, .45); display: grid; place-items: center; z-index: 50; padding: 16px; backdrop-filter: blur(3px); }
.modal { background: #fff; border-radius: 24px; width: 660px; max-width: 100%; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.modal.wide { width: 1000px; } .m-h { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.m-b { padding: 18px 22px; overflow-y: auto; } .m-f { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
.x { border: none; background: none; font-size: 24px; cursor: pointer; color: var(--muted); }
.rep-frame { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 14px; }
.digest { white-space: pre-wrap; background: var(--tile); padding: 14px; border-radius: 14px; font-size: 12px; }
.toast { background: #111; color: #fff; padding: 11px 16px; border-radius: 14px; margin-top: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); max-width: 380px; font-size: 13px; }
.toast.err { background: var(--red); }
#toast-root { position: fixed; right: 40px; bottom: 40px; z-index: 60; }
#busy { position: fixed; inset: 0; background: rgba(255, 255, 255, .6); display: grid; place-items: center; z-index: 70; } #busy > div { background: #fff; padding: 16px 22px; border-radius: 16px; box-shadow: 0 6px 24px rgba(0, 0, 0, .15); display: flex; gap: 10px; align-items: center; }
.spin { width: 16px; height: 16px; border: 3px solid #dfe4df; border-top-color: var(--gold); border-radius: 50%; display: inline-block; animation: sp .8s linear infinite; vertical-align: middle; } @keyframes sp { to { transform: rotate(360deg); } }
.rep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
body.big #sidebar, body.big #topbar { display: none; } body.big main { padding-left: 28px; }

/* ===== reports ===== */
.report-body { background: #fff; padding: 0; } .report { max-width: 960px; margin: 0 auto; padding: 32px; } .report h2 { border-bottom: 2px solid var(--gold); padding-bottom: 4px; margin-top: 26px; font-size: 18px; }
.report .tile { border: 1px solid var(--line); }
.rep-head { border-bottom: 4px solid #111; padding-bottom: 12px; margin-bottom: 16px; } .rep-org { color: var(--brand2); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.rep-foot { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 10px; }
.report-actions { position: fixed; top: 12px; right: 12px; }
@media print { .report-actions { display: none; } .report { padding: 0; } .tile, .card { break-inside: avoid; } }

/* ===== responsive ===== */
@media (max-width: 1250px) { .home-row, .home-row.r2 { grid-template-columns: 1fr 1fr; } .home-row .loc { grid-column: 1 / -1; } }
@media (max-width: 1100px) { .g-2, .g-2-1, .g-1-2, .g-1-1 { grid-template-columns: 1fr; } .map-top { flex-wrap: wrap; } .search { flex-basis: 100%; } }
@media (max-width: 800px) {
  body { padding: 0; } .shell { border-radius: 0; min-height: 100vh; }
  #sidebar { position: fixed; left: -110px; top: 0; height: 100vh; z-index: 40; transition: left .2s; background: var(--shell1); } body.menu-open #sidebar { left: 0; }
  main { padding: 14px; } .btn.burger { display: inline-flex; } .hide-s { display: none; } body.is-home #topbar { display: flex; }
  .home-row, .home-row.r2 { grid-template-columns: 1fr; } .grid-form { grid-template-columns: 1fr; } .tb-r select { max-width: 150px; }
  .mp { min-width: 90px; padding: 10px 12px; } .mp b, .mp.wide b { font-size: 22px; } .mini-tiles { grid-template-columns: 1fr; } .mt-t { min-height: 110px; }
  .map-pills { display: none; }
}

/* ===== Kerangka Produktiviti Nasional ===== */
.aspire { background: #111; color: #fff; border-radius: var(--r); padding: 24px 28px; display: grid; grid-template-columns: 1.1fr 1.6fr; gap: 24px; margin-bottom: 16px; align-items: center; }
.aspire span { color: var(--gold); font-size: 11px; letter-spacing: .14em; font-weight: 600; } .aspire h2 { font-size: 26px; font-weight: 400; margin-top: 6px; line-height: 1.25; }
.as-o { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .as-o div { background: #1f1f1f; border-radius: 16px; padding: 14px 16px; } .as-o b { color: var(--gold); font-weight: 500; font-size: 13px; } .as-o p { margin: 6px 0 0; font-size: 13px; color: #ddd; }
.tiles.one { grid-template-columns: 1fr; margin: 0; } .tiles.one .tile { background: var(--tile); }
.pemacu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.pm { background: #fff; border-radius: var(--r); padding: 18px; border-top: 5px solid var(--pc); }
.pm-h { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; } .pm-id { background: var(--pc); color: #fff; font-weight: 700; border-radius: 12px; padding: 8px 10px; }
.ag { display: grid; grid-template-columns: 38px 1fr 40px; gap: 8px; align-items: center; padding: 9px 6px; border-radius: 12px; font-size: 13px; } .ag:hover { background: var(--tile); }
.ag-c { font-weight: 700; color: var(--pc); } .ag-k { text-align: right; font-weight: 600; }
.ag-chip { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 8px; color: var(--pc); background: color-mix(in srgb, var(--pc) 12%, white); }
.ag-chip.big, .st-chip.big { font-size: 12px; padding: 4px 10px; font-weight: 600; }
.st-chip { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 6px; margin-right: 3px; color: var(--cc); background: color-mix(in srgb, var(--cc) 12%, white); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; } .step { background: var(--tile); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.step:hover { background: #e8efea; } .sn { width: 28px; height: 28px; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; font-weight: 600; } .step i { font-size: 12px; color: var(--muted); } .step small { font-size: 12px; } .step .pill { align-self: flex-start; white-space: normal; }
.clus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; } .clus > div { border-left: 4px solid var(--cc); background: var(--tile); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.gov { display: flex; gap: 8px; align-items: stretch; } .gv { flex: 1; background: var(--tile); border-radius: 16px; padding: 14px; } .gv-n { display: block; font-weight: 600; margin-bottom: 4px; } .gv p { margin: 6px 0; } .gv-a { align-self: center; font-size: 22px; color: var(--muted); }
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .ph { background: var(--tile); border-radius: 14px; padding: 12px; } .ph.on { background: #111; color: #fff; } .ph.on .muted { color: #bbb; } .ph b { display: block; font-size: 18px; font-weight: 500; } .ph span { font-weight: 600; font-size: 13px; }
.bm { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .bm > div { background: var(--tile); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; } .bm-n { color: var(--gold); font-weight: 700; font-size: 12px; }
.prof { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 6px 0 10px; font-size: 13px; }
.chips .ag-chip, .chips .st-chip { margin: 2px 4px 2px 0; }
@media (max-width: 1100px) { .pemacu-grid, .steps, .aspire, .as-o, .clus, .phases { grid-template-columns: 1fr; } .gov { flex-direction: column; } .gv-a { transform: rotate(90deg); } }

/* ===== Teras & Agensi ===== */
.agc { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 7px; background: #eef1ee; color: #333; margin: 1px 2px 1px 0; }
.agc.lead { background: #111; color: #fff; } .agc:hover { background: var(--gold-soft); color: #111; }
.ag-chip.sec { background: transparent; border: 1px dashed var(--pc); }
.pm-id.sm { padding: 3px 8px; border-radius: 8px; font-size: 12px; background: var(--pc); color: #fff; font-weight: 700; }
.card.teras { border-top: 5px solid var(--pc); }
.tr-ag { border-top: 1px solid #f1f3f1; padding: 8px 0; } .tr-ag summary { cursor: pointer; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .tr-ag table { margin-top: 8px; }
.ag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.agcard { background: var(--tile); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; } .agcard:hover { background: #e8efea; }
.agc-h { display: flex; flex-direction: column; } .agc-m { display: flex; gap: 10px; align-items: center; font-size: 13px; flex-wrap: wrap; }
.pdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 3px; }
.mtx td.c, .mtx th.c { text-align: center; padding: 6px 4px; min-width: 34px; } .mtx sup { color: #111; }
.stack { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: #eee; width: 180px; margin-bottom: 4px; } .stack i { display: block; height: 100%; }

/* ===== Program MPB ===== */
.src-chip { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 8px; margin: 1px 3px 1px 0; white-space: nowrap; }
.s01 { --sc: #2563eb; } .s02 { --sc: #16a34a; } .s03 { --sc: #d97706; } .s04 { --sc: #7c3aed; } .s05 { --sc: #db2777; }
.src-chip { color: var(--sc); background: color-mix(in srgb, var(--sc) 12%, white); }
.prog { background: #fff; border-radius: var(--r); padding: 22px; margin-bottom: 16px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.prog-top { background: #0b2a5b; color: #fff; border-radius: 999px; padding: 12px 28px; display: flex; gap: 12px; align-items: center; } .prog-top b { font-size: 22px; font-weight: 600; } .prog-top small { color: #b9c6dd; }
.prog-teras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; }
.pt { border-radius: 18px; padding: 16px; background: color-mix(in srgb, var(--pc) 7%, white); border-top: 6px solid var(--pc); display: flex; flex-direction: column; gap: 8px; }
.pt-h { font-weight: 700; color: var(--pc); font-size: 17px; } .pt-n b { font-size: 26px; font-weight: 500; color: var(--pc); margin-right: 6px; }
.pt .mini.big div { background: var(--pc); }
.prog-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; background: var(--tile); border-radius: 16px; padding: 14px; text-align: center; } .prog-sum b { font-size: 30px; font-weight: 500; display: block; }
.srcs { display: flex; flex-direction: column; gap: 8px; } .srx { display: grid; grid-template-columns: 40px 1fr 40px; gap: 10px; align-items: center; background: color-mix(in srgb, var(--sc) 7%, white); border-radius: 14px; padding: 10px 12px; }
.srx span { background: var(--sc); color: #fff; border-radius: 10px; font-weight: 700; text-align: center; padding: 6px 0; } .srx p { margin: 2px 0 0; } .srx em { font-style: normal; font-size: 20px; text-align: right; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .modes div { background: var(--tile); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 2px; text-align: center; } .modes span { color: var(--muted); font-size: 12px; } .modes em { font-style: normal; color: var(--muted); font-size: 12px; margin-top: 6px; }
.modes div:first-child b:first-child, .modes div:last-child b:last-child { color: #0891b2; } .modes div:first-child b:last-child, .modes div:last-child b:first-child { color: #a21caf; }
.crit { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 14px; } .cr { background: #fff; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.cr-k { width: 30px; height: 30px; border-radius: 8px; background: #e3eff0; display: grid; place-items: center; font-weight: 700; } .cr-w { background: #15803d; color: #fff; font-weight: 700; font-size: 22px; border-radius: 12px; text-align: center; padding: 4px; }
.sc-form { display: flex; flex-direction: column; gap: 12px; } .sc-form label { display: grid; grid-template-columns: 1fr 160px 30px 90px; gap: 10px; align-items: center; } .sc-form label span small { display: block; color: var(--muted); font-size: 11px; } .sc-form em { color: #15803d; font-style: normal; font-weight: 700; } .sc-form output { font-weight: 700; font-size: 18px; }
.crit-mini { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; } .crit-mini div { background: var(--tile); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; font-size: 11px; } .crit-mini span { font-weight: 700; } .crit-mini b { font-size: 16px; } .crit-mini em { color: var(--muted); font-style: normal; }
@media (max-width: 1100px) { .prog-teras, .crit, .modes, .prog-sum { grid-template-columns: 1fr; } .sc-form label { grid-template-columns: 1fr; } }

/* ===== Bantuan bahasa mudah ===== */
.ii { font-style: normal; color: #8a8f8c; cursor: help; font-size: 13px; margin-left: 3px; position: relative; }
.ii:hover { color: var(--ink); }
.explain { background: #fff8e8; border: 1px solid #f5dfa8; border-radius: 16px; padding: 10px 16px; margin-bottom: 14px; font-size: 14px; }
.explain summary { cursor: pointer; font-weight: 600; } .explain p { margin: 8px 0 4px; } .explain ul { margin: 4px 0 8px; padding-left: 20px; } .explain li { margin: 2px 0; }
.gloss { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.gl { background: #fff; border-radius: 16px; padding: 14px 16px; } .gl b { font-size: 15px; } .gl p { margin: 6px 0 0; color: #444; font-size: 13px; line-height: 1.5; }
body { line-height: 1.45; }

/* ===== Kebolehcapaian (WCAG AA) ===== */
.skip { position: absolute; left: -999px; top: 8px; background: #111; color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; } .skip:focus { left: 12px; }
:focus-visible { outline: 3px solid #1d4ed8 !important; outline-offset: 2px; }
.dot { width: 15px; height: 15px; font-size: 10px; line-height: 15px; text-align: center; color: #fff; font-weight: 700; }
.dot.amber { color: #111; } .dot.grey { color: #fff; }
.pill b { font-weight: 800; }
.srcnote { display: block; font-size: 11px; color: #6b7280; margin-top: 4px; }
.tr { font-size: 12px; font-weight: 700; margin-left: 6px; white-space: nowrap; } .tr.up { color: #15803d; } .tr.down { color: #b91c1c; } .tr.flat { color: #6b7280; }
.muted, .small.muted, .t-s, .t-l { color: #5f6662; }
#mymap .sea { fill: #6f9599; } #mymap .lbl.sm { font-size: 7.5px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ===== Laman utama: tangga keberhasilan ===== */
.ladder { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.lad { background: #fff; border-radius: 20px; padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.lad::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; }
.lad.imp { background: #0f0f0f; color: #fff; } .lad.imp::before { background: var(--gold); } .lad.imp .srcnote, .lad.imp .ii { color: #b5b9b7; } .lad.imp span { color: #e5e7e6; }
.lad.has::before { background: #0f766e; } .lad.out::before { background: #2563eb; }
.lad-k { font-size: 11px; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.lad.imp .lad-k { color: var(--gold) !important; }
.lad > b { font-size: 34px; font-weight: 400; letter-spacing: -.02em; line-height: 1.1; } .lad > span { font-size: 13px; }
.lad.imp .c-red { color: #fca5a5; } .lad.imp .c-green { color: #86efac; }
.hcard.attn h2 { font-size: 22px; font-weight: 500; } .attn-l { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 10px; }
.attn-l li { display: flex; gap: 12px; background: var(--tile); border-radius: 14px; padding: 12px; } .attn-i { font-size: 20px; } .attn-l p { margin: 0 0 4px; font-size: 14px; } .attn-l small { color: #555; }
.chg { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; } .chg li { background: var(--tile); border-radius: 12px; padding: 10px 12px; } .chg b { font-size: 18px; margin-right: 6px; }
#mymap .mk-n { font-size: 6px; fill: #fff; text-anchor: middle; font-weight: 700; pointer-events: none; display: none; }
.state-list { position: absolute; inset: 76px 20px 70px; overflow: auto; background: #fff; border-radius: 16px; padding: 8px 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.map-pills-m { display: none; }
.g-v span.small { display: block; margin-top: 4px; }
@media (max-width: 1100px) { .ladder { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .map-pills-m { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: -6px 0 14px; } .map-pills-m div { background: #111; color: #ccc; border-radius: 14px; padding: 10px; text-align: center; font-size: 11px; } .map-pills-m b { display: block; color: #fff; font-size: 20px; font-weight: 400; } .map-card { height: 380px; } .map-top select { min-width: 0; flex: 1; } .map-bl .seg { overflow-x: auto; max-width: 100%; } }

.sl .pill { font-size: 10px; } .sl-v { white-space: nowrap; } .sl .spark { width: 80px; }
.g-v { bottom: 18px; } .g-v span { display: block; }
@media (max-width: 800px) {
  .map-card { height: auto; display: flex; flex-direction: column; padding: 10px; gap: 8px; }
  .map-top, .map-bl { position: static; flex-wrap: wrap; } .map-top { order: 1; } .map-wrap { position: relative; order: 2; height: 240px; } .map-bl { order: 3; }
  .state-list { position: static; order: 2; max-height: 360px; } .help-fab { width: 48px; height: 48px; right: 14px; bottom: auto; top: 14px; display: none; }
}

.ag.gap { background: #fff5f5; border: 1px dashed #fca5a5; }
.gapbars { display: flex; gap: 8px; align-items: flex-end; height: 150px; padding: 10px 0; } .gb { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; justify-content: flex-end; height: 100%; }
.gb-bar { flex: 1; display: flex; align-items: flex-end; } .gb-bar i { display: block; width: 26px; background: linear-gradient(#d9473c, #f59e0b); border-radius: 6px 6px 0 0; } .gb b { font-weight: 600; }

.hist { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; } .hist > div { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 800px) { .hist { grid-template-columns: 1fr 1fr; } }

.sc-form textarea.full-ev { grid-column: 1 / -1; font-size: 12px; }

.sortb { border: none; background: none; font: inherit; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); cursor: pointer; padding: 0; }
.tbl.cmp th { white-space: normal; text-transform: none; font-size: 13px; color: var(--ink); vertical-align: top; } .tbl.cmp td { vertical-align: top; }

.chain { display: flex; gap: 8px; align-items: stretch; } .chain > div { flex: 1; background: var(--tile); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 3px; }
.chain > div span { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--muted); } .chain b { font-size: 24px; font-weight: 400; } .chain small { font-size: 12px; color: #555; } .chain em { font-style: normal; font-size: 12px; color: #0f766e; font-weight: 600; } .chain > i { align-self: center; font-style: normal; color: var(--muted); font-size: 20px; }
.tl { list-style: none; padding: 0; margin: 0; } .tl li { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid #f1f3f1; } .tl small { color: var(--muted); } .tl p { margin: 0; font-size: 13px; }
@media (max-width: 900px) { .chain { flex-direction: column; } .chain > i { transform: rotate(90deg); } }

.srcdoc { max-height: 320px; overflow: auto; font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: #fafbfa; border-radius: 12px; padding: 10px; } .srcdoc div { padding: 1px 4px; white-space: pre-wrap; } .srcdoc .hl { background: #fef3c7; border-left: 3px solid var(--gold); } .srcdoc b { color: #92400e; }

.ngroups { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; } .chip.on { background: #111; color: #fff; border-color: #111; }

#tour { position: fixed; inset: 0; z-index: 95; pointer-events: none; }
.t-hole { position: fixed; border-radius: 22px; box-shadow: 0 0 0 9999px rgba(10, 25, 30, .55); outline: 3px solid var(--gold); transition: all .2s; }
.t-pop { position: fixed; background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.3); pointer-events: auto; display: flex; flex-direction: column; gap: 6px; }
.t-pop small { color: var(--muted); } .t-pop b { font-size: 17px; } .t-pop p { margin: 0 0 6px; font-size: 14px; line-height: 1.5; } .t-pop .row { justify-content: flex-end; }
.tour-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #111; color: #fff; border-radius: 18px; padding: 14px 18px; margin-bottom: 14px; } .tour-card p { margin: 4px 0 0; color: #ccc; }

.grid-form label.chk { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); font-size: 13px; }

/* =====================================================================
   TEMA BAHARU – gaya laman korporat (putih, indigo, lavender lembut)
   ===================================================================== */
:root { --brand: #4f46e5; --brand-2: #6d5dfc; --brand-soft: #eef0ff; --lav: #f6f5ff; --gold: #6d5dfc; --gold-soft: #e4e2ff; --ink: #121032; --muted: #6b6a85; --line: #ebeaf7; --tile: #f6f6fd; --r: 20px; --page: #ffffff; }
body { background: #fff; padding: 0; color: var(--ink); }
.shell { display: block; border-radius: 0; box-shadow: none; background: #fff; min-height: 100vh; overflow: visible; }
h1, h2, h3 { color: var(--ink); }
/* top navigation */
#sidebar.topnav { position: sticky; top: 0; z-index: 60; width: auto; height: auto; padding: 0; display: block; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); overflow: visible; }
.tn-in { max-width: 1240px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 22px; }
.tn-logo { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; } .tn-logo svg { width: 30px; height: 30px; } .tn-logo b { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.tn-menu { display: flex; align-items: center; gap: 4px; flex: 1; }
.dd { position: relative; } .dd-b, .tn-link { border: none; background: none; font: inherit; font-size: 14px; color: #3d3b5c; padding: 8px 12px; border-radius: 10px; cursor: pointer; text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.dd-b i { font-style: normal; font-size: 10px; opacity: .7; } .dd-b:hover, .tn-link:hover, .dd:focus-within .dd-b { background: var(--brand-soft); color: var(--brand); }
.dd.on .dd-b, .tn-link.on { color: var(--brand); font-weight: 600; }
.dd-m { position: absolute; top: calc(100% + 6px); left: 0; min-width: 320px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 50px rgba(30, 27, 75, .14); padding: 8px; display: none; }
.dd:hover .dd-m, .dd:focus-within .dd-m { display: block; } .dd::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
.dd-m a { display: flex; gap: 12px; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--ink); } .dd-m a:hover, .dd-m a.on { background: var(--lav); }
.dd-m b { display: block; font-size: 14px; font-weight: 600; } .dd-m small { color: var(--muted); font-size: 12px; }
.dd-i { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; } .dd-i svg { width: 18px; height: 18px; }
.dotb.in { position: static; font-style: normal; border: none; background: var(--brand); color: #fff; }
.tn-r { display: flex; align-items: center; gap: 10px; } .tn-role { max-width: 210px; border-radius: 999px; font-size: 13px; padding: 7px 12px; border-color: var(--line); }
.bell { background: var(--lav); width: 38px; height: 38px; } .dotb { background: var(--brand); color: #fff; border-color: #fff; }
.btn { border-radius: 999px; border-color: var(--line); } .btn.primary { background: var(--brand); border-color: var(--brand); } .btn.primary:hover { background: #4338ca; }
.btn.cta { padding: 6px 6px 6px 18px; gap: 10px; } .btn.cta .arr { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; font-weight: 700; }
main { padding: 0; } #topbar { max-width: 1240px; margin: 0 auto; padding: 18px 24px 0; display: flex; justify-content: space-between; align-items: center; } .crumbs { font-size: 13px; color: var(--muted); } .crumbs a { color: var(--muted); } .crumbs span { margin: 0 4px; }
body.is-home #topbar { display: none; }
#view { max-width: 1240px; margin: 0 auto; padding: 22px 24px 48px; }
/* surfaces */
.card, .tile, .hcard, .lad, .pm, .agcard, .gl, .cr { background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.tile::before { display: none; } .tile { border-top: 3px solid var(--line); } .tile.b-green { border-top-color: var(--green); } .tile.b-amber { border-top-color: var(--amber); } .tile.b-red { border-top-color: var(--red); }
.card-h h3 { font-size: 18px; font-weight: 600; }
.tabs { background: var(--lav); border: 1px solid var(--line); } .tabs a.on, .seg button.on { background: var(--brand); color: #fff; }
.seg { border: 1px solid var(--line); box-shadow: none; }
.callout { background: var(--lav); border-left-color: var(--brand); }
.explain { background: var(--lav); border-color: #dcd9fb; }
.lad.imp { background: linear-gradient(135deg, #4f46e5, #6d5dfc); border: none; } .lad.imp::before { background: #c7c3ff; } .lad.imp .lad-k { color: #e0ddff !important; } .lad.imp .srcnote, .lad.imp .ii { color: #d7d3ff; }
.lad.has::before { background: #10b981; } .lad.out::before { background: var(--brand-2); }
.mp { background: #1e1b4b; } .help-fab { background: var(--brand); } .help-fab:hover { color: #fff; background: #4338ca; }
.map-card { background: #eceaff; border: 1px solid var(--line); } :root { --sea: #eceaff; }
#mymap .sea { fill: #8b86c9; } #mymap .core { fill: var(--brand); } #mymap .halo { fill: rgba(79, 70, 229, .22); }
.g-fg { stroke: var(--brand); } .mini div { background: var(--brand); }
.ag-chip { border-radius: 999px; } .chip:hover { border-color: var(--brand); }
.pill.amber, .sev-medium { background: #fff4dc; } .tour-card { background: linear-gradient(135deg, #4f46e5, #6d5dfc); }
.t-hole { outline-color: var(--brand); }
.demo-note { margin-top: 18px; }
/* hero */
.hero { position: relative; border-radius: 28px; overflow: hidden; background: var(--lav); border: 1px solid var(--line); padding: 64px 24px 56px; text-align: center; margin-bottom: 28px; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(79,70,229,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(79,70,229,.06) 1px, transparent 1px); background-size: 48px 48px; }
.hero .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; } .hero .b1 { width: 420px; height: 420px; background: #a5b4fc; top: -120px; left: 18%; } .hero .b2 { width: 380px; height: 380px; background: #c4b5fd; bottom: -160px; right: 14%; }
.hero > *:not(.blob) { position: relative; }
.eyebrow { display: inline-block; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 54px); line-height: 1.12; font-weight: 500; letter-spacing: -.025em; margin: 0 auto 16px; max-width: 900px; }
.hero h1 mark { background: var(--brand); color: #fff; padding: 0 12px; border-radius: 6px; }
.hero p.lead { max-width: 620px; margin: 0 auto 26px; color: #4a4868; font-size: 16px; line-height: 1.6; }
.hero-search { display: flex; max-width: 520px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 18px; position: relative; box-shadow: 0 10px 30px rgba(79,70,229,.08); }
.hero-search input { border: none; flex: 1; outline: none; font-size: 15px; } .hero-search .s-res { top: calc(100% + 8px); text-align: left; z-index: 5; }
.hero-links { margin-top: 14px; display: flex; gap: 18px; justify-content: center; font-size: 13px; } .hero-links a { color: var(--muted); }
.fc { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; text-align: left; box-shadow: 0 12px 30px rgba(30,27,75,.08); font-size: 12px; min-width: 180px; }
.fc b { display: block; font-size: 20px; font-weight: 600; margin-top: 4px; } .fc .spark { width: 90px; height: 26px; } .fc small { color: var(--muted); }
.fc.f1 { left: 2%; top: 26%; } .fc.f2 { left: 4%; top: 62%; } .fc.f3 { right: 2%; top: 22%; } .fc.f4 { right: 4%; top: 60%; }
.fc .fc-chips { display: flex; gap: 4px; margin-top: 6px; } .fc .fc-chips span { border: 1px solid var(--brand); color: var(--brand); border-radius: 999px; padding: 1px 8px; font-size: 10px; }
.trust { text-align: center; margin: 8px 0 30px; } .trust h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; margin-bottom: 18px; }
.trust-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.trust-row a { border: 1px solid var(--line); border-radius: 16px; padding: 16px 10px; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 2px; background: #fff; } .trust-row a:hover { border-color: var(--brand); box-shadow: 0 8px 24px rgba(79,70,229,.1); }
.trust-row b { font-size: 20px; font-weight: 700; letter-spacing: -.01em; } .trust-row small { color: var(--muted); font-size: 11px; }
.sec-band { background: var(--lav); border: 1px solid var(--line); border-radius: 28px; padding: 28px; margin-bottom: 24px; }
.sec-band > h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; margin: 0 0 4px; } .sec-band > p { color: var(--muted); margin: 0 0 18px; }
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 54px 24px; text-align: center; background: linear-gradient(135deg, #5b50f0, #4338ca); color: #fff; margin: 28px 0 8px; }
.cta-band::after { content: ''; position: absolute; inset: auto -10% -60% -10%; height: 120%; background: repeating-radial-gradient(ellipse at 50% 100%, rgba(255,255,255,.08) 0 2px, transparent 2px 22px); }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 40px); font-weight: 500; margin: 0 0 8px; } .cta-band p { color: #dcd9ff; margin: 0 0 22px; } .cta-band .row { justify-content: center; position: relative; z-index: 1; }
.cta-band .btn { background: #fff; color: var(--brand); border-color: #fff; } .cta-band .btn.ghostw { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
/* footer */
#footer { border-top: 1px solid var(--line); margin-top: 24px; } .ft-in { max-width: 1240px; margin: 0 auto; padding: 36px 24px 20px; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 24px; }
.ft-in h4 { font-size: 14px; margin: 0 0 10px; } .ft-in a:not(.tn-logo) { display: block; color: var(--muted); font-size: 13px; padding: 3px 0; text-decoration: none; } .ft-in a:hover { color: var(--brand); } .ft-b p { color: var(--muted); }
.ft-c { text-align: center; color: var(--muted); padding: 14px 24px 28px; }
/* responsive */
@media (max-width: 1100px) { .fc { display: none; } .ft-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 980px) {
  /* nota: susun atur laci menu mudah alih ditakrifkan dalam blok @media (max-width: 1100px) di bawah */
  .dd-m { position: static; display: block; box-shadow: none; border: none; padding: 0 0 8px 8px; min-width: 0; } .dd-b { font-weight: 700; }
  .btn.burger { display: inline-flex; } .tn-role { max-width: 130px; } .hide-s { display: none !important; }
}
@media (max-width: 800px) { #sidebar.topnav { position: sticky; left: 0; height: auto; } .hero { padding: 40px 16px; } #view { padding: 14px; } }
.hero > .fc { position: absolute; }
.hero-search .i { width: 18px; height: 18px; align-self: center; color: #8a88a8; flex-shrink: 0; margin-right: 8px; }
.hero-search .btn.cta { white-space: nowrap; }
@media (max-width: 1320px) { .hero > .fc { display: none; } }
.fc { min-width: 150px; max-width: 175px; } .fc.f1 { left: 1.5%; top: 40%; } .fc.f2 { left: 3%; top: 68%; } .fc.f3 { right: 1.5%; top: 40%; } .fc.f4 { right: 3%; top: 68%; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; } .trust-row a { width: 170px; }

.tn-logo b { white-space: nowrap; }
@media (max-width: 600px) { .tn-in { gap: 10px; padding: 10px 14px; } .tn-role { max-width: 104px; } .tn-logo b { font-size: 16px; } }

/* =====================================================================
   TEMA MPC – warna rasmi logo Perbadanan Produktiviti Malaysia
   Hitam arang #221E20 · Merah MPC #ED1C24 · Putih
   ===================================================================== */
:root {
  --mpc-black: #221e20; --mpc-red: #ed1c24; --mpc-red-d: #c4141b; --mpc-red-soft: #fdeced;
  --brand: #221e20; --brand-2: #ed1c24; --brand-soft: #f3f1f1; --lav: #f7f6f5;
  --gold: #ed1c24; --gold-soft: #fbd9da;
  --ink: #1b1819; --muted: #6e686a; --line: #e9e6e5; --tile: #f6f5f4; --sea: #eef0f1;
  --red: #c62828; /* status "ketinggalan" – lebih gelap supaya tidak keliru dengan merah jenama */
}
body { color: var(--ink); }
/* top navigation + logo */
.tn-logo { gap: 12px; }
.tn-logo img { height: 34px; width: auto; display: block; }
.tn-logo .tn-sep { width: 1px; height: 28px; background: var(--line); }
.tn-logo b { font-weight: 800; letter-spacing: .01em; } .tn-logo b em { font-style: normal; color: var(--mpc-red); }
#sidebar.topnav { border-bottom: 1px solid var(--line); box-shadow: inset 0 -3px 0 -1px transparent; }
#sidebar.topnav::after { content: ''; display: block; height: 3px; background: linear-gradient(90deg, var(--mpc-black) 0 72%, var(--mpc-red) 72% 100%); }
.dd-b:hover, .tn-link:hover, .dd:focus-within .dd-b { background: var(--brand-soft); color: var(--ink); }
.dd.on .dd-b, .tn-link.on { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--mpc-red); border-radius: 10px 10px 0 0; }
.dd-i { background: var(--mpc-red-soft); color: var(--mpc-red); }
.dd-m a:hover, .dd-m a.on { background: var(--lav); }
.dd-m { box-shadow: 0 20px 50px rgba(34, 30, 32, .14); }
.dotb, .dotb.in { background: var(--mpc-red); color: #fff; }
.bell { background: var(--brand-soft); }
/* buttons, tabs */
.btn.primary { background: var(--mpc-black); border-color: var(--mpc-black); color: #fff; }
.btn.primary:hover { background: #000; color: #fff; }
.btn.cta { background: var(--mpc-red); border-color: var(--mpc-red); } .btn.cta:hover { background: var(--mpc-red-d); }
.btn.cta .arr { color: var(--mpc-red); }
.tabs a.on, .seg button.on { background: var(--mpc-black); color: #fff; }
.chip:hover, .trust-row a:hover { border-color: var(--mpc-red); }
.callout { background: var(--lav); border-left-color: var(--mpc-red); }
.explain { background: var(--lav); border-color: var(--line); border-left: 4px solid var(--mpc-red); }
a:hover { color: var(--mpc-red); }
:focus-visible { outline: 2px solid var(--mpc-red); outline-offset: 2px; }
/* IMPAK / HASIL / OUTPUT ladder */
.lad.imp { background: linear-gradient(135deg, #221e20, #3a3335); } .lad.imp::before { background: var(--mpc-red); }
.lad.imp .lad-k { color: #f3c4c6 !important; } .lad.imp .srcnote, .lad.imp .ii { color: #d9d2d3; }
.lad.out::before { background: var(--mpc-red); }
/* map + charts */
.mp { background: var(--mpc-black); } .help-fab { background: var(--mpc-red); } .help-fab:hover { background: var(--mpc-red-d); color: #fff; }
.map-card { background: #eef0f1; } #mymap .sea { fill: #9aa3a8; } #mymap .core { fill: var(--mpc-black); } #mymap .halo { fill: rgba(237, 28, 36, .22); }
.g-fg { stroke: var(--mpc-red); } .mini div { background: var(--mpc-black); }
.tour-card { background: linear-gradient(135deg, #221e20, #3a3335); border-left: 6px solid var(--mpc-red); }
.t-hole { outline-color: var(--mpc-red); }
/* hero */
.hero { background: #fbfafa; }
.hero::before { background-image: linear-gradient(rgba(34,30,32,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(34,30,32,.05) 1px, transparent 1px); }
.hero .b1 { background: #f6b7ba; opacity: .35; } .hero .b2 { background: #d6d0d1; opacity: .5; }
.hero h1 mark { background: none; color: var(--ink); padding: 0 4px; box-shadow: inset 0 -0.32em 0 var(--mpc-red-soft); border-bottom: 4px solid var(--mpc-red); border-radius: 0; }
.hero-logo { display: block; height: 56px; width: auto; margin: 0 auto 14px; }
.hero-search { box-shadow: 0 10px 30px rgba(34,30,32,.08); }
.fc { box-shadow: 0 12px 30px rgba(34,30,32,.08); }
.fc .fc-chips span { border-color: var(--mpc-black); color: var(--mpc-black); }
.hero p.lead { color: #4b4547; }
/* bands */
.cta-band { background: var(--mpc-black); }
.cta-band::before { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 22%; background: var(--mpc-red); border-radius: 999px 0 0 999px; opacity: .95; }
.cta-band p { color: #d9d2d3; }
.cta-band .btn { color: var(--mpc-black); } .cta-band .btn.ghostw { color: #fff; }
/* kerangka: teks aspirasi kini kelihatan */
.aspire { background: var(--mpc-black); border-left: 6px solid var(--mpc-red); }
.aspire h2 { color: #fff; } .aspire span { color: #f39498; }
/* footer */
.ft-b .ft-logo { height: 44px; width: auto; display: block; margin-bottom: 10px; }
#footer { border-top: 3px solid var(--mpc-black); }
.ft-c { border-top: 1px solid var(--line); }
@media (max-width: 600px) { .tn-logo img { height: 26px; } .tn-logo .tn-sep { display: none; } }
/* ===== Pusat Kawalan – kepala status, jalur KPI, keputusan ===== */
.cc-head { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px 28px 22px; margin-bottom: 18px; position: relative; overflow: hidden; }
.cc-head::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(var(--mpc-black) 0 70%, var(--mpc-red) 70%); }
.cc-id { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
.cc-id h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: -.02em; margin: 4px 0 6px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cc-id .eyebrow { margin: 0; font-size: 12px; letter-spacing: .02em; }
.cc-sub { margin: 0; color: var(--muted); font-size: 13px; } .fresh { white-space: nowrap; }
.verdict { font-size: 14px; font-weight: 700; padding: 6px 14px; border-radius: 999px; letter-spacing: .02em; text-transform: uppercase; }
.verdict.v-green { background: #e3f4e9; color: #1d7a45; } .verdict.v-amber { background: #fff1d6; color: #9a6205; } .verdict.v-red { background: var(--mpc-red-soft); color: var(--mpc-red-d); } .verdict.v-grey { background: var(--tile); color: var(--muted); }
.cc-search { position: relative; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; min-width: 320px; background: var(--lav); }
.cc-search input { border: none; background: none; outline: none; flex: 1; font-size: 14px; } .cc-search .i { width: 18px; height: 18px; color: var(--muted); }
.cc-search .s-res { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; }
.kstrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.ks { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 16px; background: var(--lav); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: .15s; }
.ks:hover { border-color: var(--mpc-black); color: var(--ink); }
.ks.warn { background: #fff7f7; border-color: #f6c6c8; }
.ks-k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ks b { font-size: 22px; font-weight: 600; letter-spacing: -.01em; } .ks b small { font-size: 12px; font-weight: 500; color: var(--muted); }
.ks > small { font-size: 12px; color: var(--muted); line-height: 1.4; } .ks > small b { font-size: 12px; }
.ks svg { width: 100%; height: 28px; }
.decide, .comp { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 20px 24px; margin-bottom: 18px; }
.dc-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; } .dc-h h2 { font-size: 18px; font-weight: 600; }
.dc-l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.dc-l li { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; gap: 4px 10px; padding: 14px; border-radius: 16px; background: var(--lav); border: 1px solid var(--line); }
.dc-l li .btn { grid-column: 2; justify-self: start; margin-top: 6px; }
.dc-n { width: 26px; height: 26px; border-radius: 50%; background: var(--mpc-black); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.dc-l li:first-child .dc-n { background: var(--mpc-red); }
.dc-l b { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; } .dc-l small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.btn.sm { padding: 5px 12px; font-size: 12px; }
.dq { display: block; font-size: 11.5px; line-height: 1.4; margin-top: 4px; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, .12); color: #ffd7d8 !important; }
.dq.soft { background: var(--lav); color: var(--muted) !important; } .dq.soft a { color: var(--mpc-red); }
.comp-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cp { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); min-width: 104px; text-decoration: none; color: var(--ink); }
.cp b { font-size: 13px; } .cp small { font-size: 11px; color: var(--muted); }
.cp.green { background: #f0faf3; border-color: #cdebd6; } .cp.amber { background: #fff8e8; border-color: #f6dfa8; } .cp.red { background: #fff2f2; border-color: #f6c6c8; } .cp.red small { color: var(--mpc-red-d); }
.tag { font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 2px 8px; border-radius: 999px; background: var(--tile); color: var(--muted); vertical-align: middle; }
/* tolok: label tidak terpotong */
.g-v { padding: 0 24%; } .g-v span { display: block; font-size: 12px !important; line-height: 1.35; color: var(--muted); white-space: normal; }
.home-row.r2 { grid-template-columns: 1.7fr 1fr 1fr; }
.mt-t b { font-size: 30px; } .mt-t small { display: block; font-size: 11px; }
.cta-band::before { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 8px; border-radius: 0; }
/* senarai sektor – nama penuh */
.sl-n { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; line-height: 1.25; }
@media (max-width: 1000px) { .kstrip { grid-template-columns: 1fr 1fr; } .cc-search { min-width: 0; width: 100%; } }
@media (max-width: 560px) { .kstrip { grid-template-columns: 1fr; } .cc-head { padding: 20px 18px; } }
/* ===== pembaikan halaman lain ===== */
.grid-form > label { min-width: 0; } .grid-form input, .grid-form select, .grid-form textarea { min-width: 0; width: 100%; box-sizing: border-box; }
.esc-ladder { list-style: none; margin: 0; padding: 0 0 0 4px; counter-reset: e; position: relative; }
.esc-ladder::before { content: ''; position: absolute; left: 17px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(var(--line), var(--mpc-red)); }
.esc-ladder li { counter-increment: e; position: relative; padding: 6px 0 14px 44px; font-size: 13px; line-height: 1.45; }
.esc-ladder li::before { content: counter(e); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--mpc-black); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.esc-ladder li:last-child::before { background: var(--mpc-red); border-color: var(--mpc-red); color: #fff; }
.esc-ladder li b { display: block; }
.tbl thead th { position: sticky; top: 62px; background: #fff; z-index: 2; box-shadow: 0 1px 0 var(--line); }
.tbl td:first-child a, .tbl td.id, .nowrap-id { white-space: nowrap; }
.t-sum { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 12px; }
.t-sum div { background: var(--lav); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; } .t-sum span { display: block; font-size: 11px; color: var(--muted); } .t-sum b { font-size: 20px; font-weight: 600; }
.t-sum .k-g b { color: var(--green); } .t-sum .k-a b { color: var(--amber); } .t-sum .k-r b { color: var(--red); }
.kcell { min-width: 220px; } .kcell .small { line-height: 1.35; }
@media (max-width: 700px) { .t-sum { grid-template-columns: 1fr 1fr; } }
.rp-prev { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 10px 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 6px 16px rgba(34,30,32,.06); border-top: 4px solid var(--mpc-red); }
.rp-prev img { width: 54px; height: auto; } .rp-prev i { display: block; height: 4px; border-radius: 2px; background: var(--tile); } .rp-prev i.t { height: 7px; width: 70%; background: var(--mpc-black); margin: 2px 0 4px; } .rp-prev i.s { width: 60%; }
.rp-prev span { font-size: 9px; font-weight: 700; color: var(--mpc-red); text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
.rep-logo { height: 46px; width: auto; display: block; margin-bottom: 8px; }
.gl-en { display: block; font-style: italic; font-size: 12px; color: var(--mpc-red-d); margin: 2px 0 4px; }
.gl-pg { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--muted); } .gl-pg:hover { color: var(--mpc-red); }
.set-h { margin: 10px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mpc-black); } .set-h:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.tbl-wrap .tbl thead th { position: static; }
.grid-form input[type=checkbox] { width: auto; }
.prog-top { background: var(--mpc-black) !important; box-shadow: inset 0 -4px 0 var(--mpc-red); }
.tbl td.nm { min-width: 210px; }
.ex-tbl select { max-width: 230px; width: 230px; } .ex-tbl input:not([type=checkbox]) { max-width: 110px; }
.ex-tbl td { vertical-align: top; }
.cc-id > div:first-child { min-width: 0; flex: 1 1 380px; } .cc-search { flex: 0 1 380px; }
@media (max-width: 600px) { .fresh { white-space: normal; } .cc-id h1 { font-size: 24px; } .cc-id .eyebrow { font-size: 11px; } }
@media (max-width: 480px) { .tn-role { display: none; } .tn-logo b { font-size: 15px; } .tn-in { gap: 8px; } .tn-r { gap: 6px; margin-left: auto; } }
.tn-logo b { letter-spacing: .06em; } .tn-tag { font-size: 10px; font-weight: 700; color: var(--mpc-red); border: 1px solid var(--mpc-red); border-radius: 999px; padding: 1px 7px; letter-spacing: .04em; }
.ft-b .tn-tag { display: none; }
@media (max-width: 480px) { .tn-tag { display: none; } }
.tn-tag { white-space: nowrap; }
/* tolok Firma dibantu – susun atur mengalir (teks tidak lagi ditindih) */
.hcard.gauge { display: flex; flex-direction: column; }
.hcard.gauge .g-h p { max-width: none; }
.hcard.gauge .g-svg { position: static; display: block; width: 100%; max-width: 300px; height: auto; margin: auto auto 0; padding-top: 18px; }
.hcard.gauge .g-v { position: static; padding: 0 12px; margin-top: -62px; text-align: center; }
.hcard.gauge .g-v b { font-size: 44px; }
.hcard.gauge .g-v { margin-bottom: auto; } .hcard.gauge .g-svg { max-width: 320px; }
.tour-btn { border: none; font: inherit; font-weight: 700; font-size: 16px; color: var(--mpc-black); cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.tour-btn:hover { background: var(--mpc-red); color: #fff; }
.t-pop .btn:focus-visible, .t-pop .btn:focus { outline: 2px solid var(--mpc-red); outline-offset: 2px; }
/* ===== Laporan pakar (rp) ===== */
.rp { max-width: 980px; margin: 0 auto; line-height: 1.55; }
.rp-plain { background: #fbfafa; border: 1px solid var(--line); border-left: 6px solid var(--mpc-red); border-radius: 14px; padding: 16px 20px; margin: 16px 0; }
.rp-plain p { margin: 6px 0; font-size: 15px; }
.rp-k { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mpc-red-d); margin-bottom: 4px; }
.rp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 14px 0 20px; }
.rp-tiles div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; } .rp-tiles span { display: block; font-size: 11px; color: var(--muted); font-weight: 600; } .rp-tiles b { display: block; font-size: 24px; font-weight: 600; margin-top: 2px; } .rp-tiles em { font-style: normal; font-size: 12px; color: var(--muted); }
.rp-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 19px; font-weight: 700; margin: 30px 0 12px; padding-top: 14px; border-top: 2px solid var(--mpc-black); }
.rp-h > span { background: var(--mpc-black); color: #fff; border-radius: 6px; padding: 0 8px; font-size: 14px; } .rp-h small { font-size: 12px; color: var(--muted); font-weight: 500; }
.rp-f { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; break-inside: avoid; background: #fff; }
.rp-f.sev3 { border-left: 6px solid var(--mpc-red); } .rp-f.sev2 { border-left: 6px solid #e39a12; } .rp-f.sev1 { border-left: 6px solid #9aa3a8; }
.rp-fh { display: flex; gap: 12px; align-items: flex-start; } .rp-fh h3 { font-size: 16px; font-weight: 700; margin: 2px 0 0; line-height: 1.35; }
.rp-n { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: var(--mpc-black); color: #fff; display: grid; place-items: center; font-weight: 700; }
.rp-cat { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 1px 8px; border-radius: 999px; background: var(--tile); color: var(--muted); }
.rp-fg { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 12px 0; } .rp-fg p { margin: 0; font-size: 14px; }
.rp-act { background: #f7f6f5; border-radius: 12px; padding: 12px 16px; } .rp-act ol { margin: 4px 0 8px; padding-left: 20px; } .rp-act li { margin: 4px 0; font-size: 14px; }
.rp-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; border-top: 1px dashed var(--line); padding-top: 8px; }
.rp-ev { font-size: 11.5px; color: var(--muted); margin: 8px 0 0; }
.rp-subtle { display: flex; flex-direction: column; gap: 8px; }
.rp-s { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #fff; } .rp-s summary { cursor: pointer; font-weight: 600; font-size: 14px; } .rp-s p { font-size: 13.5px; margin: 6px 0; }
.rp-s.sev2 { border-left: 4px solid #e39a12; } .rp-s.sev1 { border-left: 4px solid #9aa3a8; } .rp-s.sev3 { border-left: 4px solid var(--mpc-red); }
.rp-good li, .rp-q li { margin: 6px 0; } .rp-good { list-style: none; padding: 0; } .rp-good li::before { content: '✓ '; color: var(--green); font-weight: 700; }
.rp-q { background: #fff8e8; border: 1px solid #f6dfa8; border-radius: 12px; padding: 12px 16px 12px 34px; }
.rp-econ h3 { font-size: 15px; margin: 18px 0 6px; } .rp-econ p { font-size: 14px; }
.rp-insight { background: #f7f6f5; border-radius: 10px; padding: 10px 14px; }
.rp-evid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .rp-evid div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; } .rp-evid b { font-size: 20px; display: block; } .rp-evid span { font-size: 12px; color: var(--muted); }
.rp blockquote { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid var(--mpc-red); background: #fbfafa; font-style: italic; font-size: 13.5px; }
.rp-plan td { vertical-align: top; } .rp-agenda li { margin: 6px 0; }
.rp-gloss { margin-top: 26px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; } .rp-gloss summary { cursor: pointer; font-weight: 700; } .rp-gloss dt { font-weight: 700; margin-top: 8px; font-size: 13px; } .rp-gloss dd { margin: 2px 0 0; font-size: 13px; color: #4b4547; }
.rp-foot-note { font-size: 11.5px; color: var(--muted); margin-top: 18px; }
.rp-gloss[open], .rp-s[open] { break-inside: avoid; }
@media print { .rp-h { break-after: avoid; } .rp-f, .rp-s { break-inside: avoid; } }
@media (max-width: 700px) { .rp-fg, .rp-evid { grid-template-columns: 1fr; } }
/* pratonton penemuan di halaman Laporan */
.ins-card { border: 1px solid var(--line); border-radius: 20px; background: #fff; padding: 20px 22px; margin-bottom: 18px; border-left: 6px solid var(--mpc-red); }
.ins-card h2 { font-size: 18px; font-weight: 700; margin: 0 0 8px; } .ins-card .ins-l { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.ins-card .ins-l li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 14px; } .ins-card .ins-l b.n { width: 24px; height: 24px; border-radius: 50%; background: var(--mpc-black); color: #fff; display: grid; place-items: center; font-size: 12px; }
.ins-card .ins-l small { display: block; color: var(--muted); }
.rp-pref { display: block; font-size: 11.5px; font-weight: 700; color: var(--mpc-red-d); margin-bottom: 2px; }
.rp .hbar .val { min-width: 110px; white-space: nowrap; text-align: right; }
/* tangga eskalasi (garis masa) */
.el-ph { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #1d7a45; margin: 10px 0 4px; } .el-ph.post { color: var(--mpc-red-d); }
.esc2 { list-style: none; margin: 0; padding: 0; position: relative; }
.esc2 li { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 10px; position: relative; }
.esc2 li + li { margin-top: 2px; }
.esc2 .el-d { font-size: 12px; font-weight: 700; text-align: center; padding: 3px 0; border-radius: 999px; background: #e8f6ed; color: #1d7a45; }
.esc2 li.el-due .el-d { background: var(--mpc-black); color: #fff; } .esc2 li.el-post .el-d { background: var(--mpc-red-soft); color: var(--mpc-red-d); }
.esc2 li.el-due { background: var(--lav); border: 1px solid var(--line); margin: 6px 0; }
.esc2 b { display: block; font-size: 13px; } .esc2 small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.esc2 .el-dt { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.esc2 li.past { opacity: .55; } .esc2 li.next { outline: 2px solid var(--mpc-red); outline-offset: -2px; } .esc2 li.next::after { content: 'SETERUSNYA'; position: absolute; right: 8px; top: -7px; font-size: 9px; font-weight: 700; background: var(--mpc-red); color: #fff; padding: 1px 6px; border-radius: 999px; }

/* =====================================================================
   NAVIGASI PREMIUM v2 – responsif, animasi, palet arahan
   ===================================================================== */
:root { --nav-h: 72px; --ease: cubic-bezier(.2, .8, .2, 1); }
#sidebar.topnav { position: sticky !important; top: 0 !important; left: auto !important; height: auto !important; width: auto !important; z-index: 60; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); transition: box-shadow .25s var(--ease), background .25s; }
body.scrolled #sidebar.topnav { box-shadow: 0 8px 30px rgba(34,30,32,.08); background: rgba(255,255,255,.94); }
#sidebar .tn-in { max-width: 1320px; height: var(--nav-h); padding: 0 24px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; }
#sidebar .tn-logo img { height: 32px; transition: height .25s var(--ease); }
#sidebar .tn-logo b { font-size: 17px; letter-spacing: .08em; }
/* menu */
#sidebar .tn-menu { display: flex !important; position: static; flex-direction: row; justify-content: center; gap: 2px; padding: 0; background: none; border: none; max-height: none; overflow: visible; min-width: 0; }
#sidebar .tn-dh { display: none; }
#sidebar .dd-b, #sidebar .tn-link { position: relative; font-size: 14.5px; font-weight: 500; color: #4a4446; padding: 10px 14px; border-radius: 10px; background: none; box-shadow: none !important; transition: color .2s, background .2s; }
#sidebar .dd-b i { display: inline-grid; width: 12px; height: 12px; transition: transform .25s var(--ease); } #sidebar .dd-b i svg { width: 12px; height: 12px; }
#sidebar .dd:hover .dd-b i, #sidebar .dd.open .dd-b i { transform: rotate(180deg); }
#sidebar .dd-b::after, #sidebar .tn-link::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--mpc-red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
#sidebar .dd.on .dd-b, #sidebar .tn-link.on { color: var(--ink); font-weight: 700; }
#sidebar .dd.on .dd-b::after, #sidebar .tn-link.on::after, #sidebar .dd-b:hover::after, #sidebar .tn-link:hover::after { transform: scaleX(1); }
#sidebar .dd-b:hover, #sidebar .tn-link:hover, #sidebar .dd.open .dd-b { background: var(--brand-soft); color: var(--ink); }
/* mega dropdown with animation */
#sidebar .dd-m { display: block !important; position: absolute; top: calc(100% + 10px); left: 50%; min-width: 360px; transform: translate(-50%, 8px) scale(.98); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s var(--ease), transform .25s var(--ease), visibility .2s; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 8px; box-shadow: 0 24px 60px rgba(34,30,32,.16); }
#sidebar .dd:hover > .dd-m, #sidebar .dd.open > .dd-m, #sidebar .dd:focus-within > .dd-m { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
#sidebar .dd-m::before { content: ''; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }
#sidebar .dd-g { display: grid; gap: 2px; }
#sidebar .dd-m a { padding: 10px 12px; border-radius: 12px; transition: background .15s, transform .15s; } #sidebar .dd-m a:hover { background: var(--lav); transform: translateX(2px); }
#sidebar .dd-m a.on { background: var(--mpc-red-soft); } #sidebar .dd-m a.on .dd-i { background: var(--mpc-red); color: #fff; }
#sidebar .dd-i { transition: background .2s, color .2s; } #sidebar .dd-m a:hover .dd-i { background: var(--mpc-black); color: #fff; }
/* right tools */
#sidebar .tn-r { display: flex; align-items: center; gap: 8px; }
.tn-ic { position: relative; height: 40px; min-width: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font: inherit; transition: border-color .2s, background .2s, transform .15s; }
.tn-ic:hover { border-color: var(--mpc-black); transform: translateY(-1px); color: var(--ink); } .tn-ic svg { width: 18px; height: 18px; }
.tn-search { color: var(--muted); min-width: 200px; justify-content: flex-start; } .tn-search .tn-sl { flex: 1; text-align: left; font-size: 13.5px; }
kbd { font: 600 10.5px ui-monospace, Consolas, monospace; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 5px; color: var(--muted); background: #fafafa; }
.tn-bell .dotb { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(237,28,36,.45); } 50% { box-shadow: 0 0 0 6px rgba(237,28,36,0); } }
#sidebar .tn-cta { height: 40px; padding: 0 16px; gap: 8px; border-radius: 12px; background: var(--mpc-red); border-color: var(--mpc-red); color: #fff; box-shadow: 0 6px 18px rgba(237,28,36,.25); transition: transform .15s, box-shadow .2s, background .2s; }
#sidebar .tn-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(237,28,36,.32); background: var(--mpc-red-d); } #sidebar .tn-cta svg { width: 17px; height: 17px; }
.tn-bell, .tour-btn { width: auto; }
/* profile / role switcher */
.me-b { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 10px 0 4px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit; transition: border-color .2s; max-width: 230px; } .me-b:hover { border-color: var(--mpc-black); }
.me-b i { display: inline-grid; width: 12px; color: var(--muted); } .me-b i svg { width: 12px; height: 12px; }
.av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--mpc-black), #4a4245); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; letter-spacing: .03em; flex-shrink: 0; box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--mpc-red); } .av.lg { width: 44px; height: 44px; font-size: 15px; }
.me-t { display: flex; flex-direction: column; line-height: 1.15; text-align: left; min-width: 0; } .me-t b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; } .me-t small { font-size: 11px; color: var(--muted); white-space: nowrap; }
#sidebar .me-dd .me-m { left: auto; right: 0; transform: translate(0, 8px) scale(.98); width: 340px; padding: 0; overflow: hidden; }
#sidebar .me-dd:hover > .me-m, #sidebar .me-dd.open > .me-m, #sidebar .me-dd:focus-within > .me-m { transform: translate(0, 0) scale(1); }
#sidebar .me-dd .me-m::before { left: auto; right: 24px; transform: rotate(45deg); }
.me-h { display: flex; gap: 12px; align-items: center; padding: 16px; background: linear-gradient(135deg, #221e20, #3a3335); color: #fff; } .me-h small { display: block; color: #d9d2d3; font-size: 12px; }
.me-n { font-size: 11.5px; color: var(--muted); margin: 10px 16px 4px; }
.me-l { max-height: 320px; overflow: auto; padding: 4px 8px 10px; } .me-g > span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mpc-red-d); margin: 10px 8px 4px; }
.me-g button { display: block; width: 100%; text-align: left; border: none; background: none; font: inherit; font-size: 13px; padding: 7px 10px; border-radius: 8px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .me-g button:hover { background: var(--lav); } .me-g button.on { background: var(--mpc-red-soft); font-weight: 700; }
/* burger */
#sidebar .burger { display: none; width: 42px; padding: 0; flex-direction: column; gap: 4px; } #sidebar .burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
body.menu-open #sidebar .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); } body.menu-open #sidebar .burger span:nth-child(2) { opacity: 0; } body.menu-open #sidebar .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.tn-ov { position: fixed; inset: 0; background: rgba(20,18,19,.4); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; z-index: 70; }
/* page enter animation */
#view.v-in > * { animation: vin .45s var(--ease) both; } #view.v-in > *:nth-child(2) { animation-delay: .04s; } #view.v-in > *:nth-child(3) { animation-delay: .08s; } #view.v-in > *:nth-child(4) { animation-delay: .12s; } #view.v-in > *:nth-child(n+5) { animation-delay: .16s; }
@keyframes vin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card, .hcard, .ks, .dc-l li, .tile { transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.hcard:hover, .dc-l li:hover, .ks:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(34,30,32,.08); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* command palette */
#cmdk { position: fixed; inset: 0; z-index: 200; background: rgba(20,18,19,.45); backdrop-filter: blur(4px); display: grid; align-items: start; justify-items: center; padding-top: 12vh; opacity: 0; transition: opacity .18s; }
#cmdk.show { opacity: 1; } #cmdk .ck-box { width: min(640px, 92vw); background: #fff; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.3); overflow: hidden; transform: translateY(-8px) scale(.98); transition: transform .22s var(--ease); } #cmdk.show .ck-box { transform: none; }
.ck-in { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); } .ck-in svg { width: 20px; height: 20px; color: var(--muted); } .ck-in input { flex: 1; border: none; outline: none; font: inherit; font-size: 16px; padding: 4px 0; }
.ck-res { max-height: 52vh; overflow: auto; padding: 6px; } .ck-sec { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 8px 12px 4px; }
.ck-res a { display: flex; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; } .ck-res a i { width: 28px; height: 28px; border-radius: 8px; background: var(--tile); display: grid; place-items: center; font-style: normal; font-size: 13px; flex-shrink: 0; }
.ck-res a b { display: block; font-size: 14px; font-weight: 600; } .ck-res a small { color: var(--muted); font-size: 12px; } .ck-res a.on, .ck-res a:hover { background: var(--mpc-red-soft); } .ck-res a.on i { background: var(--mpc-red); color: #fff; }
.ck-none { padding: 20px; text-align: center; color: var(--muted); } .ck-f { display: flex; gap: 16px; padding: 8px 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); background: #fafafa; }
/* legend no longer covers Sabah */
.map-legend { right: auto !important; left: 50% !important; transform: translateX(-50%); max-width: 44%; flex-wrap: wrap; justify-content: center; row-gap: 4px; }
/* ---------- responsive steps ---------- */
@media (max-width: 1440px) { .tn-search { min-width: 0; } .tn-search .tn-sl, .tn-search kbd { display: none; } .me-t { display: none; } .me-b { padding: 0 8px 0 4px; } }
@media (max-width: 1280px) { #sidebar .tn-cta .cta-l { display: none; } #sidebar .tn-cta { padding: 0 12px; } #sidebar .dd-b, #sidebar .tn-link { padding: 10px 10px; font-size: 14px; } }
@media (max-width: 1100px) {
  #sidebar .tn-in { grid-template-columns: auto 1fr auto; }
  #sidebar .burger { display: inline-flex; }
  #sidebar .tn-menu { position: fixed !important; top: 0; left: auto !important; right: 0; bottom: 0; width: min(380px, 88vw); max-width: 100vw; z-index: 80; flex-direction: column !important; justify-content: flex-start; align-items: stretch; gap: 4px; padding: 18px 16px 24px !important; padding-bottom: calc(24px + env(safe-area-inset-bottom)) !important; background: #fff !important; box-shadow: -20px 0 60px rgba(0,0,0,.18); transform: translateX(100%); visibility: hidden; pointer-events: none; transition: transform .32s var(--ease), visibility .32s; overflow-y: auto !important; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; max-height: none !important; border: none !important; }
  body.menu-open #sidebar .tn-menu { transform: none; visibility: visible; pointer-events: auto; } body.menu-open .tn-ov { opacity: 1; visibility: visible; }
  body.menu-open { overflow: hidden; touch-action: none; }
  #sidebar .tn-dh { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; } .tn-x { border: none; background: var(--tile); width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 14px; }
  #sidebar .dd { opacity: 0; transform: translateX(16px); transition: opacity .3s var(--ease), transform .35s var(--ease); transition-delay: calc(var(--i, 0) * 50ms + 80ms); } body.menu-open #sidebar .dd { opacity: 1; transform: none; }
  #sidebar .dd-b { width: 100%; justify-content: flex-start; font-weight: 800; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--mpc-red-d); padding: 10px 8px 4px; pointer-events: none; } #sidebar .dd-b i, #sidebar .dd-b::after { display: none; }
  #sidebar .dd-m { position: static !important; opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; transform: none !important; box-shadow: none !important; border: none !important; padding: 0 !important; min-width: 0 !important; width: auto !important; } #sidebar .dd-m::before { display: none; }
  #sidebar .tn-link { padding: 12px 8px; font-weight: 700; } #sidebar .tn-link::after { display: none; }
  #sidebar .me-dd .me-m { position: absolute !important; top: calc(100% + 10px) !important; right: 0 !important; left: auto !important; width: 320px !important; box-shadow: 0 24px 60px rgba(34,30,32,.16) !important; border: 1px solid var(--line) !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
  #sidebar .me-dd.open .me-m { opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; }
}
@media (max-width: 600px) { :root { --nav-h: 62px; } #sidebar .tn-in { padding: 0 14px; gap: 8px; } #sidebar .tn-logo .tn-tag, #sidebar .tn-logo .tn-sep { display: none; } #sidebar .tn-logo img { height: 24px; } #sidebar .tn-r { gap: 6px; } #sidebar .tn-r > .tn-ic:not(.tn-search):not(.tn-bell):not(.burger) { display: none; } .tn-ic { height: 38px; min-width: 38px; padding: 0 8px; } #sidebar .tn-cta { display: none; } .me-b { height: 40px; } .av { width: 30px; height: 30px; } }
@media (max-width: 1100px) { #sidebar.topnav { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: #fff !important; } }
html, body { overflow-x: clip; }
.ck-in input:focus, .ck-in input:focus-visible { outline: none; }
#sidebar .me-dd .me-m::before { background: #221e20; border-color: #221e20; }
@media (max-width: 1100px) { #sidebar .dd.on .dd-b { color: var(--mpc-red-d); } }
/* jarak alat kanan */
#sidebar .tn-r { gap: 12px; }
#sidebar .tn-r .tn-cta { margin-left: 4px; }
#sidebar .me-dd { margin-left: 6px; padding-left: 16px; border-left: 1px solid var(--line); }
.me-b .av { box-shadow: none; }
.me-b { gap: 8px; }
.tn-bell .dotb { top: -8px; right: -8px; }
@media (max-width: 1280px) { #sidebar .tn-r { gap: 10px; } #sidebar .me-dd { padding-left: 12px; margin-left: 2px; } }
@media (max-width: 600px) { #sidebar .tn-r { gap: 8px; } #sidebar .me-dd { border-left: none; padding-left: 0; margin-left: 0; } }

/* =====================================================================
   PENAMBAHBAIKAN MUDAH ALIH (telefon & tablet)
   ===================================================================== */

/* 1. Medan input tidak menyebabkan iOS "zoom" & tidak melimpah */
@media (max-width: 820px) {
  input, select, textarea { font-size: 16px; max-width: 100%; min-width: 0; }
  .row { min-width: 0; } .row > select, .row > input { flex: 1 1 180px; }
  .seg { overflow-x: auto; max-width: 100%; scrollbar-width: none; } .seg::-webkit-scrollbar { display: none; }
}

/* 2. Jadual: skrol mendatar yang lancar + petunjuk tepi */
.tbl-wrap { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
@media (max-width: 820px) {
  .tbl-wrap { position: relative; margin-inline: -2px; padding-bottom: 2px; }
  .tbl-wrap { background-image:
      linear-gradient(90deg, #fff 30%, rgba(255,255,255,0)),
      linear-gradient(270deg, #fff 30%, rgba(255,255,255,0)),
      radial-gradient(farthest-side at 0 50%, rgba(34,30,32,.14), rgba(34,30,32,0)),
      radial-gradient(farthest-side at 100% 50%, rgba(34,30,32,.14), rgba(34,30,32,0));
    background-position: left center, right center, left center, right center;
    background-size: 26px 100%, 26px 100%, 13px 100%, 13px 100%;
    background-repeat: no-repeat; background-attachment: local, local, scroll, scroll; }
  .tbl-wrap .tbl { font-size: 13px; } .tbl-wrap .tbl th, .tbl-wrap .tbl td { white-space: nowrap; }
  .tbl-scroll-hint { display: block; font-size: 11.5px; color: var(--muted); margin: 0 0 6px; }
}
.tbl-scroll-hint { display: none; }

/* 3. Sasaran sentuh minimum 40px */
@media (max-width: 820px) {
  .btn { min-height: 40px; } .btn.xs { min-height: 34px; padding: 7px 12px; }
  .tn-ic, .tn-x { min-height: 40px; min-width: 40px; }
  .ck-res a { padding: 12px; } .me-l button { min-height: 38px; }
}

/* 4. Breadcrumb bertindan pada telefon */
@media (max-width: 700px) {
  #topbar { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 16px 0; }
  #topbar .small { font-size: 11.5px; }
}

/* 5. Lawatan berpandu jadi "bottom sheet" pada telefon */
@media (max-width: 640px) {
  .t-pop { left: 12px !important; right: 12px !important; width: auto !important; top: auto !important; bottom: calc(12px + env(safe-area-inset-bottom)) !important; max-height: 62vh; overflow-y: auto; }
  .t-pop .row { justify-content: stretch; flex-wrap: wrap; } .t-pop .row .btn { flex: 1 1 auto; justify-content: center; }
  .t-hole { display: none; }
}

/* 6. Modal & dropdown peranan muat pada skrin kecil */
@media (max-width: 640px) {
  .modal { border-radius: 20px; max-height: 88vh; }
  #sidebar .me-dd .me-m { width: min(300px, calc(100vw - 24px)) !important; right: 8px !important; }
  .m-h { padding: 14px 16px; } .m-b { padding: 14px 16px !important; }
}

/* 7. Kad & grid tidak sesak */
@media (max-width: 560px) {
  #view { padding: 12px !important; }
  .card, .tile { border-radius: 16px; }
  .hist { grid-template-columns: 1fr 1fr; }
}

/* 8. Penapis peta: elak teks terpotong pada telefon */
@media (max-width: 560px) {
  .map-top { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
  .map-top .search, .map-top .hero-search { grid-column: 1 / -1; }
  .map-top select { width: 100%; flex: none; }
  .map-bl .seg, .map-card .seg { -webkit-overflow-scrolling: touch; }
  .map-bl .seg .btn, .map-card .seg .btn { white-space: nowrap; }
}
