/* Madina OKR — tampilan mengikuti Madeena Brand Operating Manual
   Layout: "taman di balik lengkung" — sidebar Paradise Garden berpola geometri tipis,
   halaman berlatar Desert Brown yang dilembutkan, satu momen tegas: lengkung waktu di beranda.
   Warna resmi: Desert Brown #EEDBCA · Paradise Garden #407F77 · Sunset Sahara #F1D1BA · Mediterranean Ocean #466689
   Huruf: Lato (Bold heading, Regular body, Italic aksen/tagline) */
:root {
  --desert: #EEDBCA;
  --garden: #407F77;
  --sahara: #F1D1BA;
  --ocean: #466689;

  --bg: #F7F0E8;
  --surface: #FFFCF8;
  --surface-2: #F4E9DD;
  --border: #E8D9C9;
  --text: #2B2622;
  --muted: #7B6F64;
  --primary: #407F77;
  --primary-strong: #326861;
  --primary-soft: #E2EDEA;
  --on-primary: #FFFCF8;
  --accent-2: #466689;
  --focus: rgba(64, 127, 119, .28);

  --side-bg: #2D5B55;
  --side-bg-2: #376A63;
  --side-text: #F4E8DC;
  --side-muted: #B9D0CA;
  --hero-from: #407F77;
  --hero-to: #2D5B55;
  --hero-text: #FFF8F0;
  --hero-muted: #D3E6E1;
  --arch-fill: #F1D1BA;
  --arch-track: rgba(255, 248, 240, .16);

  --on_track: #4C875A;
  --at_risk: #B97F30;
  --off_track: #B0544A;
  --done: #466689;
  --none: #A59A8F;
  --conf-amber: #D9A23A;
  --marker: #2B2622;
  --fase-benahi-bg: #F1D1BA; --fase-benahi-fg: #8A4316; --fase-tumbuh-bg: #DDE6F0; --fase-tumbuh-fg: #3A5778;
  --shadow: 0 1px 2px rgba(60, 40, 20, .05), 0 2px 10px rgba(60, 40, 20, .04);
  --backdrop: rgba(30, 40, 38, .45);

  --font: 'Lato', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --radius-sm: 9px;
  --sidebar: 240px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171D1C; --surface: #1F2725; --surface-2: #29322F; --border: #34403D;
    --text: #F1E7DC; --muted: #A99D91; --primary: #6FB0A6; --primary-strong: #8AC3BA; --primary-soft: #223E3A;
    --on-primary: #10201D; --accent-2: #8FAACB; --focus: rgba(111, 176, 166, .32);
    --side-bg: #12201E; --side-bg-2: #1B2F2C; --side-text: #EDE2D6; --side-muted: #8FAAA3;
    --hero-from: #2A4F4A; --hero-to: #15302C; --hero-text: #FFF5EA; --hero-muted: #B4CEC8;
    --arch-fill: #E7C3A8; --arch-track: rgba(255, 245, 234, .12);
    --on_track: #7DBA8A; --at_risk: #E0AA5C; --off_track: #E08575; --done: #8FAACB; --none: #8D857D;
    --conf-amber: #E6B34F; --marker: #F1E7DC; --fase-benahi-bg: #4A3224; --fase-benahi-fg: #EDB88F; --fase-tumbuh-bg: #263447; --fase-tumbuh-fg: #A9C0DC; --shadow: 0 1px 2px rgba(0, 0, 0, .3); --backdrop: rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #171D1C; --surface: #1F2725; --surface-2: #29322F; --border: #34403D;
  --text: #F1E7DC; --muted: #A99D91; --primary: #6FB0A6; --primary-strong: #8AC3BA; --primary-soft: #223E3A;
  --on-primary: #10201D; --accent-2: #8FAACB; --focus: rgba(111, 176, 166, .32);
  --side-bg: #12201E; --side-bg-2: #1B2F2C; --side-text: #EDE2D6; --side-muted: #8FAAA3;
  --hero-from: #2A4F4A; --hero-to: #15302C; --hero-text: #FFF5EA; --hero-muted: #B4CEC8;
  --arch-fill: #E7C3A8; --arch-track: rgba(255, 245, 234, .12);
  --on_track: #7DBA8A; --at_risk: #E0AA5C; --off_track: #E08575; --done: #8FAACB; --none: #8D857D;
  --conf-amber: #E6B34F; --marker: #F1E7DC; --fase-benahi-bg: #4A3224; --fase-benahi-fg: #EDB88F; --fase-tumbuh-bg: #263447; --fase-tumbuh-fg: #A9C0DC; --shadow: 0 1px 2px rgba(0, 0, 0, .3); --backdrop: rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  font-size: 14.5px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; font-weight: 700; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-size: .9em; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; }
.pos { color: var(--on_track); }
.neg { color: var(--off_track); }
.warn { color: var(--at_risk); }
.stale { color: var(--off_track); }
.ic { width: 18px; height: 18px; flex: none; vertical-align: -4px; }
.inline { display: inline; }
.print-only { display: none; }
.num, .stat-value, .big-pct, .kr-pct, .obj-mini-pct, .ini-pct, .eng strong, .kpi-grid strong { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Kerangka ---------- */
.shell { display: flex; min-height: 100vh; background: linear-gradient(to right, var(--side-bg) var(--sidebar), transparent 0); }
.sidebar {
  width: var(--sidebar); flex: none; color: var(--side-text); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; padding: 20px 14px; background-color: var(--side-bg);
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--side-text); padding: 2px 8px 18px; }
.brand:hover { text-decoration: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-size: 17px; font-weight: 900; letter-spacing: .01em; }
.brand-name em { font-size: 11.5px; color: var(--side-muted); font-style: italic; }
.period-switch { padding: 0 8px 16px; }
.period-switch label { display: block; color: var(--side-muted); margin-bottom: 5px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.period-switch select { width: 100%; background: var(--side-bg-2); color: var(--side-text); border: 1px solid rgba(255, 255, 255, .14); }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; color: var(--side-text); opacity: .86; padding: 9px 12px; border-radius: 10px; font-weight: 700; font-size: 14px; }
.sidebar nav a:hover { background: rgba(255, 255, 255, .08); opacity: 1; text-decoration: none; }
.sidebar nav a.active { background: var(--side-text); color: var(--side-bg); opacity: 1; }
.beta-tag { font-style: normal; font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; border: 1px solid currentColor; opacity: .75; vertical-align: middle; line-height: 1.5; }
.sidebar nav a .beta-tag { margin-left: auto; }
.topbar h1 .beta-tag { font-size: 11px; margin-left: 6px; position: relative; top: -2px; }
.sidebar-foot { display: flex; align-items: center; gap: 6px; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 12px; }
.me { display: flex; align-items: center; gap: 10px; flex: 1; color: var(--side-text); min-width: 0; padding: 4px; border-radius: 10px; }
.me:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.me span { display: flex; flex-direction: column; min-width: 0; }
.me strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me small { color: var(--side-muted); font-size: 11.5px; }
.sidebar .btn-icon { color: var(--side-text); }
.sidebar .btn-icon:hover { background: rgba(255, 255, 255, .1); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg); }
.topbar { display: flex; align-items: center; gap: 12px; padding: 22px 30px 6px; }
.topbar h1 { font-size: 23px; font-weight: 900; }
.menu-btn { display: none; }
.content { padding: 14px 30px 30px; flex: 1; width: 100%; max-width: 1320px; }
.foot { padding: 14px 30px 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.foot em { color: var(--primary); }
.backdrop { display: none; }

/* ---------- Komponen dasar ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card-title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.card-title .ic { color: var(--primary); }
.card-head .card-title { margin-bottom: 0; }
.card.empty { text-align: center; padding: 40px 20px; }
.card.empty h3 { margin-bottom: 6px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.cols > .card { margin-bottom: 0; }
.cols + .card, .cols + section { margin-top: 18px; }
.col-main, .col-side { min-width: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 15px; border-radius: 99px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; font-size: 13.5px;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-strong); border-color: var(--primary-strong); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-danger-ghost { color: var(--off_track); }
.btn-danger-ghost:hover { background: color-mix(in srgb, var(--off_track) 12%, transparent); }
.btn-sm { padding: 5px 12px; font-size: 12.5px; }
.btn-sm .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 2px; }
/* Tombol sedang mengirim data: spinner di dalam tombol, label tetap tampil, tombol meredup dan terkunci */
.btn.is-loading { opacity: .75; cursor: progress; pointer-events: none; }
.btn.is-loading::before { content: ""; display: inline-block; flex: none; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: btn-putar .7s linear infinite; }
@keyframes btn-putar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.is-loading::before { animation-duration: 2.4s; } }
.btn-block { width: 100%; }
.btn-icon { background: none; border: 0; padding: 6px; border-radius: 8px; cursor: pointer; color: inherit; display: inline-flex; }
.btn-icon:hover { background: var(--surface-2); }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.link-btn:hover { text-decoration: underline; }
.link-btn.small { font-size: 12px; }
.link-btn.muted { color: var(--muted); }

input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 11px; width: 100%; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--focus); }
textarea { resize: vertical; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form.narrow { max-width: 440px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-weight: 700; font-size: 13px; }
.form label small { font-weight: 400; }
.form label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.form label.check input { width: auto; }
.form h3 { font-size: 14px; margin-top: 6px; color: var(--primary); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; font-size: 13px; margin-bottom: 6px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700;
  background: var(--surface-2); color: var(--muted); white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-on_track { background: color-mix(in srgb, var(--on_track) 15%, transparent); color: var(--on_track); }
.st-at_risk { background: color-mix(in srgb, var(--at_risk) 16%, transparent); color: var(--at_risk); }
.st-off_track { background: color-mix(in srgb, var(--off_track) 15%, transparent); color: var(--off_track); }
.st-done { background: color-mix(in srgb, var(--done) 16%, transparent); color: var(--done); }
.st-no_target, .st-not_started { background: var(--surface-2); color: var(--muted); }
.st-bg-on_track { background: var(--on_track); }
.st-bg-at_risk { background: var(--at_risk); }
.st-bg-off_track { background: var(--off_track); }
.st-bg-done { background: var(--done); }
.st-bg-no_target, .st-bg-not_started { background: var(--none); }
.st-bg-neutral { background: var(--primary); }
/* Exit (status penutupan) */
.st-achieved { background: color-mix(in srgb, var(--on_track) 18%, transparent); color: var(--on_track); }
.st-partial { background: color-mix(in srgb, var(--at_risk) 18%, transparent); color: var(--at_risk); }
.st-missed { background: color-mix(in srgb, var(--off_track) 15%, transparent); color: var(--off_track); }
.st-postponed { background: color-mix(in srgb, var(--done) 16%, transparent); color: var(--done); }
.st-cancelled { background: var(--surface-2); color: var(--muted); text-decoration: line-through; }
.st-bg-achieved { background: var(--on_track); }
.st-bg-partial { background: var(--at_risk); }
.st-bg-missed { background: var(--off_track); }
.st-bg-postponed { background: var(--done); }
.st-bg-cancelled { background: var(--none); }
.pm-st-achieved { border-left-color: var(--on_track); }
.pm-st-partial { border-left-color: var(--at_risk); }
.pm-st-missed { border-left-color: var(--off_track); }
.pm-st-postponed { border-left-color: var(--done); }
.pm-st-cancelled { border-left-color: var(--none); }
.stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.form .stars label { display: inline; font-size: 30px; line-height: 1; color: var(--border); cursor: pointer; font-weight: 400; }
.stars input:checked ~ label, .form .stars label:hover, .form .stars label:hover ~ label { color: #E3A93B; }
.stars input:focus-visible + label { outline: 2px solid var(--primary); border-radius: 4px; }
.stars-static { color: #E3A93B; letter-spacing: 1px; }
.stars-static .off { color: var(--border); }
.exit-title { margin: 0 0 4px; }
.exit-item { padding: 10px 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.exit-item:first-of-type { border-top: 0; }
.exit-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.exit-card h4 { margin: 12px 0 4px; font-size: 13px; }
.exit-card.is-closed { border-left: 4px solid var(--none); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); margin-right: 6px; vertical-align: 1px; }
.tag-star { background: color-mix(in srgb, var(--accent-2) 14%, transparent); color: var(--accent-2); border-radius: 99px 99px 4px 4px; padding: 2px 9px 1px; }
.tag-collab { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); border-radius: 99px; padding: 2px 9px; font-size: 12px; font-weight: 700; }
.filters .pic-cari { width: 150px; min-width: 0; flex: none; height: 38px; box-sizing: border-box; }
@media (min-width: 701px) { .toolbar .filters { flex-wrap: nowrap; } }
@media (max-width: 700px) { .filters .pic-cari { flex: 1; width: auto; min-width: 120px; } }

/* Progress bar: pekat = capaian, arsir = selisih ke progres seharusnya, titik = posisi sekarang */
.pbar { --pc: var(--none); position: relative; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--pc) 20%, var(--surface)); }
.pbs-on_track { --pc: var(--on_track); } .pbs-at_risk { --pc: var(--at_risk); } .pbs-off_track { --pc: var(--off_track); }
.pbs-done { --pc: var(--done); } .pbs-neutral { --pc: var(--primary); }
.pbar-solid { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px 0 0 99px; background: color-mix(in srgb, var(--pc) 78%, #000); transition: width .5s ease; }
.pbar-gap { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--pc) 60%, transparent) 0 2px, transparent 2px 5px); transition: width .5s ease, left .5s ease; }
.pbar-dot { position: absolute; top: 50%; left: calc(var(--x) * 1% - var(--x) * .12px); width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: color-mix(in srgb, var(--pc) 78%, #000); border: 2px solid var(--surface); box-shadow: 0 0 0 1px color-mix(in srgb, var(--pc) 40%, transparent); transition: left .5s ease; }
.pbar-hatch-legend { display: inline-block; width: 14px; height: 8px; border-radius: 2px; vertical-align: -1px; margin-right: 4px; background: repeating-linear-gradient(135deg, var(--muted) 0 2px, transparent 2px 5px); }
.pbar-solid:only-of-type { border-radius: 99px; }
.conf { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-left: 2px; border: 2px solid transparent; flex: none; }
.conf-green { background: var(--on_track); }
.conf-amber { background: var(--conf-amber); }
.conf-red { background: var(--off_track); }
.conf-none { border-color: var(--none); }

.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  color: #FFFCF8; font-weight: 700; font-size: 12px; letter-spacing: .3px; vertical-align: middle;
}
.avatar { position: relative; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; }
.avatar.xs { width: 22px; height: 22px; font-size: 9.5px; }
.avatar.lg { width: 72px; height: 72px; font-size: 24px; }

.flash { padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; font-weight: 700; border: 1px solid; font-size: 13.5px; }
.flash-success { background: color-mix(in srgb, var(--on_track) 12%, var(--surface)); border-color: color-mix(in srgb, var(--on_track) 35%, transparent); color: var(--on_track); }
.flash-error { background: color-mix(in srgb, var(--off_track) 10%, var(--surface)); border-color: color-mix(in srgb, var(--off_track) 35%, transparent); color: var(--off_track); }
.flash-info { background: color-mix(in srgb, var(--accent-2) 10%, var(--surface)); border-color: color-mix(in srgb, var(--accent-2) 30%, transparent); color: var(--accent-2); }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .filters, .filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters select { width: auto; min-width: 150px; }
.inline-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.inline-label input { width: auto; }
.legend { display: flex; gap: 16px; flex: 1; flex-wrap: wrap; align-items: center; }
.tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 99px; flex: 1; max-width: max-content; }
.tabs a { padding: 6px 15px; border-radius: 99px; color: var(--muted); font-weight: 700; }
.tabs a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.tabs a:hover { text-decoration: none; }
.crumbs { margin-bottom: 10px; color: var(--muted); }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }

/* ---------- Beranda ---------- */
.hero {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: var(--hero-text);
  border-radius: var(--radius); padding: 24px 28px; margin-bottom: 18px; overflow: hidden;
}
.hero h2 { font-size: 23px; font-weight: 900; }
.hero p { margin: 4px 0 0; color: var(--hero-muted); }
.hero .hero-quote { font-style: italic; color: var(--arch-fill); margin-top: 10px; }
.hero-time { display: flex; align-items: center; gap: 16px; }
.hero-time-text { display: flex; flex-direction: column; text-align: right; }
.hero-time-text span { color: var(--hero-muted); font-size: 12.5px; }
.hero-time-text strong { font-size: 28px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
/* Lengkung waktu: jendela berbentuk mihrab yang terisi cahaya sesuai waktu periode berjalan */
.arch { position: relative; width: 74px; height: 96px; border-radius: 37px 37px 6px 6px; background: var(--arch-track); border: 2px solid rgba(255, 248, 240, .35); overflow: hidden; flex: none; }
.arch-fill { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, var(--arch-fill), color-mix(in srgb, var(--arch-fill) 55%, transparent)); transition: height .9s ease; }
/* Air dalam bejana: dua gelombang bergeser berlawanan arah di atas permukaan; guncangan awal mereda jadi goyang halus */
.arch-waves { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 8px; transform-origin: bottom; }
.arch-wave { position: absolute; left: 0; bottom: 0; width: 200%; height: 8px; fill: color-mix(in srgb, var(--arch-fill) 55%, transparent); }
.arch-wave-b { opacity: .55; height: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .arch-waves { animation: arch-guncang 3.6s cubic-bezier(.2, .7, .2, 1) 1; }
  .arch-wave { animation: arch-geser 5s linear infinite; }
  .arch-wave-b { animation: arch-geser-balik 8s linear infinite; }
}
@keyframes arch-geser { to { transform: translateX(-50%); } }
@keyframes arch-geser-balik { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes arch-guncang { 0% { transform: scaleY(2.4) rotate(-4deg); } 35% { transform: scaleY(1.6) rotate(3deg); } 65% { transform: scaleY(1.2) rotate(-1.2deg); } 100% { transform: scaleY(1) rotate(0); } }
.arch::after { content: ''; position: absolute; inset: 8px 8px 0; border-radius: 30px 30px 0 0; border: 1px solid rgba(255, 248, 240, .25); border-bottom: 0; }

.stats { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; }
.stat-label { font-size: 12.5px; color: var(--muted); font-weight: 700; display: flex; align-items: center; }
.stat-value { font-size: 27px; font-weight: 900; line-height: 1.2; margin: 4px 0 2px; }
.stat-main { background: var(--primary-soft); border-color: transparent; }
.stat-main .stat-value { color: var(--primary); }

.obj-mini {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 140px 50px 124px; gap: 12px; align-items: center;
  padding: 10px 8px; border-top: 1px solid var(--border); color: var(--text);
}
.obj-mini:first-of-type { border-top: 0; }
.obj-mini:hover { background: var(--surface-2); text-decoration: none; border-radius: 10px; }
.obj-mini-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obj-mini-pct { font-weight: 700; text-align: right; }
.obj-mini .badge { justify-self: start; }

.kudos-mini { border-top: 1px solid var(--border); padding: 10px 0; }
.kudos-mini:first-of-type { border-top: 0; padding-top: 0; }
.kudos-mini-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kudos-mini p { margin: 6px 0 2px; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); align-items: flex-start; }
.feed li:first-child { border-top: 0; }
.feed-full li { padding: 12px 4px; }

/* ---------- Pohon OKR ---------- */
.tree { display: flex; flex-direction: column; }
.obj-node { position: relative; }
.obj-node .obj-node { margin-left: 30px; }
.obj-node .obj-node::before { content: ''; position: absolute; left: -18px; top: -14px; height: 44px; width: 14px; border-left: 2px solid var(--border); border-bottom: 2px solid var(--border); border-bottom-left-radius: 12px; }
.obj-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.depth-0 > .obj-card { background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--accent-2), var(--primary)) border-box; border: 1.5px solid transparent; }
.obj-head { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto 180px 124px; gap: 14px; align-items: center; padding: 15px 18px; cursor: pointer; list-style: none; }
.obj-head::-webkit-details-marker { display: none; }
.chev { width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .2s; margin-left: 3px; }
details[open] > summary .chev { transform: rotate(45deg); }
.obj-title-row { display: flex; align-items: flex-start; gap: 2px; min-width: 0; }
.obj-title-row > .lvl-ic, .obj-title-row > .tag { flex: none; }
.obj-title-row > .lvl-ic { margin-top: 2px; }
.obj-title-row > .tag { margin-top: 2px; }
.obj-title-row > .obj-title { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.obj-title { font-weight: 700; font-size: 15.5px; color: var(--text); }
.obj-head-progress { display: flex; flex-direction: column; gap: 6px; }
.obj-head-progress strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.obj-body { border-top: 1px solid var(--border); padding: 4px 18px 10px 50px; background: color-mix(in srgb, var(--surface-2) 40%, var(--surface)); }
.obj-body .pad { padding: 10px 0; }
.add-kr { margin-top: 6px; }

.kr-row { display: grid; grid-template-columns: minmax(0, 1fr) 30px 170px 124px 88px; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--border); }
.kr-row:last-of-type { border-bottom: 0; }
.kr-title { font-weight: 700; color: var(--text); }
.kr-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.kr-meta .ic { width: 14px; height: 14px; vertical-align: -2px; }
.kr-progress { display: flex; flex-direction: column; gap: 5px; }
.kr-pct { font-weight: 700; font-size: 13.5px; display: flex; align-items: center; gap: 4px; }
.kr-action { text-align: right; }

/* ---------- Detail ---------- */
.detail-head h2 { font-size: 23px; font-weight: 900; margin: 4px 0 6px; }
.detail-title { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.owner-line { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: var(--muted); }
.owner-line strong { color: var(--text); }
.desc { margin-top: 12px; padding: 12px 14px; background: var(--surface-2); border-radius: 12px; max-width: 75ch; }
.big-progress { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.big-progress > div:first-child { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.big-pct { font-size: 30px; font-weight: 900; }
.big-progress .pbar { height: 12px; }
.kpi-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 16px; }
.kpi-grid > div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.kpi-grid strong { font-size: 15.5px; }
.kpi-grid .accent { color: var(--primary); }
.chart-box { position: relative; height: 280px; }

.ini-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto 44px 28px; gap: 12px; align-items: center; padding: 10px 6px; border-top: 1px solid var(--border); color: var(--text); }
.ini-row:hover { background: var(--surface-2); border-radius: 10px; text-decoration: none; }
.ini-title { font-weight: 700; }
.ini-pct { font-weight: 700; text-align: right; }
.ini-status { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; text-align: center; }
.ini-todo { background: var(--surface-2); color: var(--muted); }
.ini-doing { background: color-mix(in srgb, var(--done) 15%, transparent); color: var(--done); }
.ini-done { background: color-mix(in srgb, var(--on_track) 15%, transparent); color: var(--on_track); }
.ini-blocked { background: color-mix(in srgb, var(--off_track) 15%, transparent); color: var(--off_track); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 16px 12px; }
.timeline li::before { content: ''; position: absolute; left: -23px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); border: 2px solid var(--surface); }
.tl-head { display: flex; gap: 8px; align-items: center; }
.tl-note { margin-top: 6px; background: var(--surface-2); padding: 8px 10px; border-radius: 10px; font-size: 13.5px; }

.comments { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.comment { display: flex; gap: 10px; }
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.comment-text { margin-top: 2px; overflow-wrap: anywhere; }
.mention { color: var(--primary); font-weight: 700; }
.comment-form { display: flex; gap: 10px; align-items: flex-start; border-top: 1px solid var(--border); padding-top: 14px; }

/* ---------- Kudos ---------- */
.kudos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.kudos-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 60px 60px var(--radius) var(--radius); padding: 26px 18px 14px; display: flex; flex-direction: column; gap: 10px; }
.kc-emoji { width: 44px; height: 44px; margin: -6px auto 0; display: grid; place-items: center; font-size: 22px; background: var(--surface-2); border-radius: 22px 22px 8px 8px; }
.kc-terimakasih .kc-emoji { background: var(--primary-soft); }
.kc-kerjatim .kc-emoji { background: color-mix(in srgb, var(--accent-2) 16%, transparent); }
.kc-inisiatif .kc-emoji, .kc-semangat .kc-emoji { background: color-mix(in srgb, var(--sahara) 70%, transparent); }
.kc-tuntas .kc-emoji { background: color-mix(in srgb, var(--on_track) 16%, transparent); }
.kc-kreatif .kc-emoji { background: color-mix(in srgb, var(--desert) 80%, transparent); }
.kc-to { display: flex; gap: 10px; align-items: center; justify-content: center; text-align: left; }
.kc-to > div { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.kc-msg { margin: 0; flex: 1; text-align: center; font-style: italic; }
.kc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--border); padding-top: 8px; }
.kc-actions { display: flex; gap: 8px; align-items: center; }
.like-btn { background: none; border: 1px solid var(--border); border-radius: 99px; padding: 3px 10px; cursor: pointer; color: var(--muted); font: inherit; font-size: 12px; display: inline-flex; gap: 4px; align-items: center; }
.like-btn .ic { width: 14px; height: 14px; }
.like-btn.liked { color: var(--off_track); border-color: color-mix(in srgb, var(--off_track) 40%, transparent); background: color-mix(in srgb, var(--off_track) 8%, transparent); }
.like-btn.liked .ic { fill: currentColor; }
.board { list-style: none; padding: 0; margin: 0; }
.board li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); }
.board li:first-child { border-top: 0; }
.rank { width: 20px; color: var(--muted); font-weight: 700; text-align: center; }
.chip-opt input, .conf-opt input, .colors input { position: absolute; opacity: 0; pointer-events: none; }
.kudos-cats, .conf-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.kudos-cats legend, .conf-pick legend { width: 100%; }
.chip-opt > span, .conf-opt > span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border: 1px solid var(--border); border-radius: 99px; cursor: pointer; font-weight: 400; }
.chip-opt input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.chip-opt input:focus-visible + span, .conf-opt input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.conf-opt input:checked + span { border-color: currentColor; font-weight: 700; }
.conf-opt-green input:checked + span { color: var(--on_track); background: color-mix(in srgb, var(--on_track) 12%, transparent); }
.conf-opt-amber input:checked + span { color: var(--at_risk); background: color-mix(in srgb, var(--conf-amber) 14%, transparent); }
.conf-opt-red input:checked + span { color: var(--off_track); background: color-mix(in srgb, var(--off_track) 12%, transparent); }
.form label.chip-opt, .form label.conf-opt { display: inline-flex; flex-direction: row; }
.colors { display: flex; gap: 8px; flex-wrap: wrap; }
.colors legend { width: 100%; }
.form .colors label { display: inline-block; }
.colors span { display: block; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--border); }
.colors input:checked + span { box-shadow: 0 0 0 2px var(--text); }

/* ---------- Report ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 2px solid var(--border); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl.compact td, .tbl.compact th { padding: 6px 6px; }
.tbl tr.inactive td { opacity: .5; }
.report-tbl .obj-row td { background: var(--surface-2); }
.mini-prog { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; min-width: 90px; }
.mini-prog .pbar { width: 90px; height: 6px; }
.eng-gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 14px; }
.eng { background: var(--surface-2); border-radius: 12px; padding: 10px; text-align: center; display: flex; flex-direction: column; }
.eng strong { font-size: 23px; font-weight: 900; }
.eng span { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.eng-good strong { color: var(--on_track); }
.eng-warn strong { color: var(--at_risk); }
.eng-bad strong { color: var(--off_track); }
.profile-card { text-align: center; }
.profile-card h3 { margin-top: 10px; }

/* ---------- Dialog ---------- */
.dlg { border: 0; border-radius: 18px; padding: 0; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 40px); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); color: var(--text); background: var(--surface); }
.dlg::backdrop { background: var(--backdrop); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.dlg-head h3 { font-size: 16px; }
.dlg .form { padding: 18px 20px 20px; }

/* ---------- Login & install ---------- */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; color: var(--side-text);
  background-color: var(--side-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='1'%3E%3Cpath d='M28 6l6 16 16 6-16 6-6 16-6-16-16-6 16-6z'/%3E%3Crect x='17' y='17' width='22' height='22' transform='rotate(45 28 28)'/%3E%3Crect x='17' y='17' width='22' height='22'/%3E%3C/g%3E%3C/svg%3E");
}
.login-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 44px; max-width: 920px; width: 100%; align-items: center; }
.login-art h1 { font-size: 38px; font-weight: 900; margin: 14px 0 6px; color: var(--side-text); }
.login-art .tagline { font-style: italic; color: var(--arch-fill); margin: 0 0 14px; }
.login-art p { color: var(--side-muted); max-width: 42ch; }
.login-art ul { padding-left: 18px; color: var(--side-muted); }
.login-art li { margin: 6px 0; }
.login-card { background: var(--surface); color: var(--text); border-radius: 120px 120px 20px 20px; padding: 56px 28px 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.login-card h2 { font-size: 23px; font-weight: 900; text-align: center; }
.login-card > .muted { text-align: center; }
.login-card p { margin: 0; }
.login-card label { display: flex; flex-direction: column; gap: 5px; font-weight: 700; font-size: 13px; }
.install-card { max-width: 640px; width: 100%; padding: 28px; color: var(--text); }
.brand-big { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.brand-big h1 { font-size: 22px; font-weight: 900; }

/* ---------- Responsif ---------- */
@media (max-width: 1100px) {
  .cols { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .shell { background: none; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .backdrop { display: block; position: fixed; inset: 0; background: var(--backdrop); z-index: 40; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 12px 16px 4px; position: sticky; top: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 10; }
  .topbar h1 { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .content { padding: 10px 16px 20px; }
  .foot { padding: 10px 16px 18px; }
  .hero { padding: 20px; }
  .hero-time { width: 100%; justify-content: space-between; flex-direction: row-reverse; }
  .hero-time-text { text-align: left; }
  .obj-head { grid-template-columns: 14px minmax(0, 1fr) auto; row-gap: 8px; padding: 12px 14px; }
  .obj-head .avatar { display: none; }
  .obj-head-progress { grid-column: 2 / 3; }
  .obj-head .badge { justify-self: end; }
  .obj-body { padding: 4px 14px 10px; }
  .obj-node .obj-node { margin-left: 12px; }
  .obj-node .obj-node::before { display: none; }
  .kr-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .kr-owner { display: none; }
  .kr-progress { grid-column: 1 / 2; }
  .kr-status { grid-row: 1; grid-column: 2; justify-self: end; }
  .kr-action { grid-column: 2; }
  .obj-mini { grid-template-columns: minmax(0, 1fr) 50px; }
  .obj-mini .avatar, .obj-mini-bar { display: none; }
  .obj-mini .badge { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .ini-row { grid-template-columns: minmax(0, 1fr) 44px; }
  .ini-row .ini-status { grid-column: 1 / -1; justify-self: start; }
  .ini-row .muted, .ini-row .avatar { display: none; }
  .login-wrap { grid-template-columns: 1fr; gap: 20px; }
  .login-art ul { display: none; }
  .login-art h1 { font-size: 28px; }
  .login-card { border-radius: 90px 90px 18px 18px; padding-top: 44px; }
  .comment-form { flex-wrap: wrap; }
  .comment-form .avatar { display: none; }
  .comment-form .btn { width: 100%; }
  .legend { display: none; }
  .filters select { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .sidebar, .topbar, .no-print, .foot, .btn, .dlg { display: none !important; }
  .print-only { display: block; }
  .shell { background: none; }
  body, .main { background: #fff; color: #000; font-size: 11px; }
  .content { padding: 0; max-width: none; }
  .card { box-shadow: none; break-inside: avoid; }
  .cols { grid-template-columns: 1fr 1fr; }
  .print-head { margin-bottom: 12px; }
}

/* Foto profil */
.photo-pick { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.photo-btn { position: relative; cursor: pointer; overflow: hidden; }
.photo-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }

/* ---------- KPI ---------- */
.st-text-on_track { color: var(--on_track); }
.st-text-at_risk { color: var(--at_risk); }
.st-text-off_track { color: var(--off_track); }
.kpi-preview { min-height: 1.4em; margin: -4px 0 0; font-weight: 700; }
.kpi-now { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.kpi-now-val { display: flex; flex-direction: column; }
.kpi-now-meta { display: flex; flex-direction: column; gap: 4px; }
.seg { display: inline-flex; gap: 4px; }
.timeline li.tl-focus { background: var(--primary-soft); border-radius: 8px; }
.kpi-summary { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.kpi-late { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; margin-left: 6px; }
.kpi-toolbar { flex-wrap: wrap; }
.kpi-pick { display: flex; align-items: center; gap: 8px; }
.kpi-pick select { min-width: 190px; }
.kpi-admin { display: flex; gap: 8px; }
.kpi-yearnav { display: flex; align-items: center; gap: 6px; margin: 4px 0 12px; flex-wrap: wrap; }
.kpi-year { margin-left: 10px; font-size: 18px; font-weight: 900; }
.kpi-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.kpi-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 1060px; font-variant-numeric: tabular-nums; }
.kpi-table th, .kpi-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: center; font-size: 13px; white-space: nowrap; }
.kpi-table thead th { background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--muted); }
.kpi-table .kpi-name-col { position: sticky; left: 0; z-index: 2; background: var(--surface); text-align: left; min-width: 250px; max-width: 290px; white-space: normal; border-right: 1px solid var(--border); font-weight: 400; }
.kpi-table thead .kpi-name-col { background: var(--surface-2); }
.kpi-title { font-weight: 700; display: block; margin-bottom: 4px; }
.kpi-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.kpi-table .is-now { background: color-mix(in srgb, var(--primary) 7%, transparent); }
.kpi-table thead .is-now { color: var(--primary); }
.kpi-cell.is-void { background: var(--surface-2); opacity: .5; }
.kpi-top td { border-bottom: 0; padding-bottom: 2px; font-weight: 700; }
.kpi-bottom td { padding-top: 0; font-size: 11.5px; color: var(--muted); }
.kpi-val { color: var(--text); display: inline-flex; align-items: center; gap: 5px; }
.kpi-val:hover { text-decoration: none; color: var(--primary); }
.kpi-flag { font-size: 10px; }
.kpi-legend { margin: 10px 2px 0; }
@media (max-width: 760px) { .kpi-table .kpi-name-col { min-width: 190px; } .kpi-pick select { min-width: 140px; } }

/* ---------- Peta Strategi ---------- */
.pm-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pm-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pm-zoom { display: inline-flex; align-items: center; gap: 2px; }
.pm-zoom-val { min-width: 44px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.pm-viewport { position: relative; overflow: auto; height: calc(100vh - 170px); min-height: 420px; background-color: color-mix(in srgb, var(--surface-2) 55%, var(--bg)); background-image: radial-gradient(circle, color-mix(in srgb, var(--muted) 38%, transparent) 1.1px, transparent 1.6px); background-size: 24px 24px; background-attachment: local; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); cursor: grab; overscroll-behavior: contain; }
.pm-viewport.is-panning { cursor: grabbing; user-select: none; }
.pm-sizer { position: relative; }
.pm-stage { position: absolute; left: 0; top: 0; transform-origin: top left; --pm-cw: 220px; }
.pm-lines { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.pm-line { fill: none; stroke: color-mix(in srgb, var(--muted) 70%, transparent); stroke-width: 1.6; stroke-dasharray: 5 5; stroke-linecap: round; }
.pm-arrow { fill: color-mix(in srgb, var(--muted) 85%, transparent); }
.pm-line-goal { stroke: color-mix(in srgb, var(--primary) 60%, transparent); }
.pm-arrow-goal { fill: color-mix(in srgb, var(--primary) 80%, transparent); }
.pm-line-support { stroke-dasharray: 2 5; stroke: color-mix(in srgb, var(--accent-2) 70%, transparent); }
.pm-arrow-support { fill: var(--accent-2); }
.pm-line-pillar { stroke: color-mix(in srgb, var(--primary) 55%, transparent); }
.pm-arrow-pillar { fill: color-mix(in srgb, var(--primary) 80%, transparent); }

.pm-goal, .pm-pillar, .pm-card, .pm-lane-label, .pm-band-label, .pm-empty { position: absolute; }
.pm-goal { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-radius: 16px; background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: var(--hero-text); box-shadow: var(--shadow); }
.pm-goal h2 { font-size: 21px; font-weight: 900; color: var(--hero-text); }
.pm-goal .eyebrow { color: var(--hero-muted); }
.pm-goal .btn-icon:hover { background: rgba(255, 255, 255, .14); }
.pm-band-label { display: flex; align-items: center; gap: 12px; }
.pm-pillar { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px 0; box-shadow: 0 1px 2px rgba(20, 30, 40, .08), 0 2px 8px rgba(20, 30, 40, .06); display: flex; flex-direction: column; gap: 8px; overflow: hidden; cursor: default; }
.pm-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 20px; }
.pm-kind { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.pm-kind .ic { width: 15px; height: 15px; color: var(--accent-2); }
.pm-kind.is-star .ic { color: var(--at_risk); }
.pm-kind.is-pillar .ic { color: var(--on_track); }
.pm-period { font-size: 12.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.pm-edit { margin: -4px -6px -4px 0; }
.pm-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pm-owner { flex: none; margin-top: 2px; }
.pm-strip { display: flex; justify-content: center; align-items: center; gap: 4px; width: calc(100% + 28px); margin: 0 -14px; padding: 8px 14px; border: 0; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pm-strip:hover { background: var(--surface-2); }
.pm-strip[aria-expanded="false"] .pm-chev { display: inline-block; transform: rotate(-90deg); }
.pm-pillar .pm-pfoot { padding-bottom: 12px; }
.pm-pillar-head { display: block; }
.pm-pillar-head strong { font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: -.005em; }
.pm-pdesc { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pm-pextra { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.pm-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pm-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--surface-2); border-radius: 99px; padding: 2px 9px; font-size: 11.5px; color: var(--text); }
.pm-chip:hover { text-decoration: none; background: var(--primary-soft); }
.pm-chip .dot { margin-right: 0; width: 7px; height: 7px; }
.pm-chip-more { color: var(--muted); }
.pm-pfoot { display: flex; align-items: center; gap: 5px; }

.pm-lane-label { display: flex; align-items: center; gap: 8px; height: 30px; border-bottom: 2px solid var(--border); font-size: 15px; }
.pm-lane-due { font-weight: 400; white-space: nowrap; }
.pm-lane-menu { position: relative; }
.pm-menu-head { padding: 6px 10px 2px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pm-lane-caret { color: var(--muted); font-size: 12px; }
.pm-lane-menu summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font-weight: 700; box-shadow: var(--shadow); }
.pm-lane-menu summary::-webkit-details-marker { display: none; }
.pm-lane-menu summary:hover { background: var(--surface-2); }
.pm-menu { position: absolute; z-index: 20; top: 38px; left: 0; min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 28px rgba(0, 0, 0, .18); padding: 6px; display: flex; flex-direction: column; }
.pm-menu a { padding: 7px 10px; border-radius: 6px; color: var(--text); font-size: 13px; }
.pm-menu a:hover { background: var(--surface-2); text-decoration: none; }

.pm-card { width: var(--pm-cw); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px 0; box-shadow: 0 1px 2px rgba(20, 30, 40, .08), 0 2px 8px rgba(20, 30, 40, .06); display: flex; flex-direction: column; gap: 9px; overflow: hidden; cursor: default; transition: opacity .15s, box-shadow .15s; }
.pm-card:hover, .pm-pillar:hover { box-shadow: 0 2px 4px rgba(20, 30, 40, .10), 0 6px 18px rgba(20, 30, 40, .10); }
.pm-card > .pm-meta { padding-bottom: 12px; }
.pm-card[hidden] { display: none !important; }
.pm-title { font-weight: 600; font-size: 17px; line-height: 1.28; letter-spacing: -.005em; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; flex: 1; min-width: 0; }
.pm-prog { display: flex; align-items: center; gap: 10px; }
.pm-prog .pbar { flex: 1; }
.pm-prog strong { font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; min-width: 3.4em; text-align: right; }
.pm-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.pm-extra { display: inline-flex; align-items: center; gap: 4px; }
.pm-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--primary); cursor: pointer; }
.pm-link:hover { text-decoration: underline; }
.pm-fold[aria-expanded="false"] .pm-chev { display: inline-block; transform: rotate(-90deg); }
.pm-compact .pm-period, .pm-compact .pm-owner { display: none; }
.pm-compact .pm-card { padding: 9px 11px 0; gap: 6px; }
.pm-compact .pm-card > .pm-meta { padding-bottom: 9px; }
.pm-compact .pm-strip { width: calc(100% + 22px); margin: 0 -11px; }
.pm-compact .pm-title { font-size: 14px; -webkit-line-clamp: 2; }
.pm-compact .pm-meta .badge { font-size: 10.5px; padding: 1px 7px; }
.pm-compact .pm-prog strong { font-size: 14px; }
.is-dim { opacity: .25; }
.pm-empty { padding: 4px 0; }
.pm-panel { position: fixed; right: 16px; top: 76px; bottom: 16px; width: min(380px, calc(100vw - 32px)); z-index: 40; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .28); display: flex; flex-direction: column; }
.pm-panel[hidden] { display: none; }
.pm-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.pm-panel-body { overflow: auto; padding: 8px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.pm-kr { display: flex; flex-direction: column; gap: 6px; padding: 10px 4px; border-bottom: 1px dashed var(--border); color: var(--text); }
.pm-kr:hover { text-decoration: none; background: var(--surface-2); border-radius: 8px; }
.pm-kr-t { font-weight: 700; }
.pm-kr-m { display: flex; align-items: center; gap: 8px; }
@media (max-width: 760px) { .pm-viewport { height: calc(100vh - 220px); } .pm-panel { top: auto; height: 55vh; } }
@media print {
  .sidebar, .topbar, .pm-toolbar, .pm-panel, .foot { display: none !important; }
  .shell { background: none; }
  .pm-viewport { height: auto; overflow: visible; border: 0; box-shadow: none; }
  @page { size: landscape; }
}
.kpi-mini { display: grid; grid-template-columns: minmax(0, 1fr) 100px 150px 88px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px dashed var(--border); }
.kpi-mini:first-of-type { border-top: 0; }
.kpi-mini-val { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.kpi-mini-st { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
@media (max-width: 760px) { .kpi-mini { grid-template-columns: 1fr auto; } .kpi-mini-st, .kr-action { grid-column: 1 / -1; flex-direction: row; text-align: left; } }

/* ---------- Logo Madeena ---------- */
.brand { flex-direction: column; align-items: flex-start; gap: 6px; }
.brand-logo { width: 160px; height: auto; display: block; }
.brand-name strong { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--side-muted); }
.login-logo { width: 150px; height: auto; display: block; margin-bottom: 8px; }
.install-logo { height: 34px; width: auto; }
.pm-goal-logo { width: 38px; height: auto; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .install-logo { filter: invert(1) brightness(1.6); } }
:root[data-theme="dark"] .install-logo { filter: invert(1) brightness(1.6); }

/* ---------- Task Todoist di initiative (v1.3.0) ---------- */
.tdl-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.tdl-warn { background: color-mix(in srgb, var(--at_risk) 14%, transparent); border: 1px solid color-mix(in srgb, var(--at_risk) 40%, transparent); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; font-size: 13px; }
.tdl-group { border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; }
.tdl-group-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 4px 0 8px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.tdl-actions { margin-left: auto; display: flex; gap: 6px; }
.tdl-actions form { margin: 0; }
.tdl-row { display: grid; grid-template-columns: 22px 1fr 130px 90px 70px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.tdl-row:last-child { border-bottom: 0; }
.tdl-ic { text-align: center; color: var(--muted); }
.tdl-done .tdl-ic { color: var(--done); }
.tdl-done .tdl-main a { color: var(--muted); text-decoration: line-through; }
.tdl-main a { color: inherit; }
.tdl-support { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0; }
@media (max-width: 720px) {
  .tdl-row { grid-template-columns: 22px 1fr; }
  .tdl-row .tdl-meta { grid-column: 2; }
}

.tdl-est { grid-template-columns: 22px 1fr 120px; }
@media (max-width: 720px) { .tdl-est { grid-template-columns: 22px 1fr; } }

/* ---------- Pohon KR → initiative → task → sub-task (v1.3.0) ---------- */
.tree-node { margin: 0; }
.tree-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 34px 78px 150px; gap: 10px; align-items: center; padding: 9px 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin-bottom: 6px; }
.tree-ini { grid-template-columns: 18px 92px minmax(0, 1fr) 34px 78px 150px; cursor: pointer; list-style: none; }
.tree-ini::-webkit-details-marker { display: none; }
.tree-ini:hover { background: var(--surface-2); }
.tree-chev { color: var(--muted); transition: transform .15s; text-align: center; }
details[open] > summary .tree-chev { transform: rotate(90deg); }
.tree-main { min-width: 0; overflow-wrap: anywhere; }
.tree-main a { color: inherit; }
.tree-ava { display: flex; justify-content: center; }
.tree-count { text-align: right; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.tree-bar { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.tree-bar .pbar { flex: 1; min-width: 40px; }
.tree-children { margin: 0 0 4px 18px; padding-left: 14px; border-left: 2px solid var(--border); }
.tree-task { background: var(--surface-2); border-style: dashed; }
.tree-sub { padding: 6px 8px; border: 0; border-bottom: 1px dashed var(--border); border-radius: 0; background: transparent; margin-bottom: 0; }
.tree-sub.tdl-done .tree-main a { color: var(--muted); text-decoration: line-through; }
.tdl-noone { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 12px; border: 1px dashed var(--border); }
@media (max-width: 720px) {
  .tree-row, .tree-ini { grid-template-columns: 18px minmax(0, 1fr) 30px; }
  .tree-ini .ini-status { grid-column: 2; justify-self: start; }
  .tree-count, .tree-bar { grid-column: 2 / -1; text-align: left; }
  .tree-children { margin-left: 8px; padding-left: 8px; }
}

/* Pohon: kolom tombol check-in & task yang bisa dilipat (v1.3.2) */
.tree-ini { grid-template-columns: 18px 92px minmax(0, 1fr) 34px 78px 150px auto; }
.tree-act { display: flex; justify-content: flex-end; min-width: 0; }
.tree-task { grid-template-columns: 18px minmax(0, 1fr) 34px 78px 150px; cursor: pointer; list-style: none; }
.tree-task::-webkit-details-marker { display: none; }
.tree-task:hover { filter: brightness(0.97); }
.tree-leaf { cursor: default; }
.tree-sub { grid-template-columns: 18px minmax(0, 1fr) 34px 78px 150px; }
@media (max-width: 720px) {
  .tree-ini, .tree-task, .tree-sub { grid-template-columns: 18px minmax(0, 1fr) 30px; }
  .tree-act { grid-column: 2 / -1; justify-content: flex-start; }
}

/* Tombol panah lipat/buka: area klik lebih besar */
.tree-chev { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin: -4px -4px -4px -6px; border-radius: 8px; font-size: 13px; }
summary:hover > .tree-chev:not(:empty) { background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }
.tree-task .tree-chev:not(:empty) { cursor: pointer; }

/* Pohon di ponsel (v1.3.3): tiap elemen ditempatkan eksplisit supaya judul tidak terjepit */
@media (max-width: 720px) {
  .tree-ini, .tree-task, .tree-sub { grid-template-columns: 22px minmax(0, 1fr) auto; column-gap: 8px; row-gap: 6px; align-items: start; }
  .tree-ini > .tree-chev, .tree-task > .tree-chev, .tree-sub > .tdl-ic { grid-column: 1; grid-row: 1; }
  .tree-ini > .tree-main, .tree-task > .tree-main, .tree-sub > .tree-main { grid-column: 2; grid-row: 1; min-width: 0; }
  .tree-ini > .tree-ava, .tree-task > .tree-ava, .tree-sub > .tree-ava { grid-column: 3; grid-row: 1; }
  .tree-ini > .ini-status { grid-column: 2; grid-row: 2; justify-self: start; }
  .tree-ini > .tree-count { grid-column: 2; grid-row: 3; text-align: left; }
  .tree-ini > .tree-bar { grid-column: 2 / -1; grid-row: 4; }
  .tree-ini > .tree-act { grid-column: 2 / -1; grid-row: 5; justify-content: flex-start; }
  .tree-task > .tree-count { grid-column: 2; grid-row: 2; text-align: left; }
  .tree-task > .tree-bar { grid-column: 2 / -1; grid-row: 3; }
  .tree-sub > .tree-count { grid-column: 2; grid-row: 2; text-align: left; }
  .tree-sub > .tree-bar { grid-column: 2 / -1; grid-row: 3; }
  .tree-bar { min-width: 0; }
  .tree-row { padding: 10px; }
  .tdl-empty { display: none; }
}


/* ---------- Radar (v1.4.0) ---------- */
:root { --radar-orange: #C9702E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --radar-orange: #E8944F; } }
.st-radar-orange { background: color-mix(in srgb, var(--radar-orange) 16%, transparent); color: var(--radar-orange); }
.rd-tagline { margin: 0 0 12px; max-width: 760px; }
.rd-tabs { flex-wrap: wrap; max-width: 100%; border-radius: 18px; margin-bottom: 16px; }
.rd-tabs a { display: inline-flex; align-items: center; gap: 6px; }
.rd-count { padding: 0 7px; }
.rd-note { background: var(--primary-soft); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; margin-bottom: 14px; line-height: 1.55; }
.rd-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.rd-summary .stat { text-decoration: none; color: inherit; cursor: pointer; }
.rd-summary .stat.rd-sel { border-color: var(--primary); box-shadow: 0 0 0 2px var(--focus); }
.rd-big { font-size: 30px; font-weight: 900; line-height: 1.1; }
.rd-row { display: grid; grid-template-columns: minmax(0, 1.8fr) 1fr 1fr 70px 110px; gap: 12px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--border); color: inherit; }
.rd-row:first-child { border-top: 0; }
.rd-row:hover { background: var(--surface-2); text-decoration: none; }
.rd-name { font-weight: 700; }
.rd-gap { font-weight: 900; }
.rd-kr { font-size: 11px; color: var(--accent-2); border: 1px solid color-mix(in srgb, var(--accent-2) 35%, transparent); border-radius: 5px; padding: 0 6px; margin-left: 6px; font-weight: 700; white-space: nowrap; }
.rd-chip { font-size: 10.5px; font-weight: 700; border-radius: 5px; padding: 0 6px; margin-left: 6px; white-space: nowrap; }
.rd-chip.real { background: color-mix(in srgb, var(--on_track) 15%, transparent); color: var(--on_track); }
.rd-chip.soft { background: var(--surface-2); color: var(--muted); }
.rd-healthy summary { cursor: pointer; }
.rd-h { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; }
.rd-seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.rd-seg a { border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 99px; padding: 5px 14px; font-weight: 700; }
.rd-seg a:hover { text-decoration: none; color: var(--text); }
.rd-seg a.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.rd-metric { display: grid; grid-template-columns: 1fr auto auto; gap: 3px 14px; padding: 10px 0; border-top: 1px solid var(--border); color: inherit; align-items: center; }
.rd-metric:hover { text-decoration: none; }
.rd-metric:hover .rd-mn b { color: var(--primary); }
.rd-mv { font-size: 14px; }
.rd-bar { grid-column: 1 / -1; height: 5px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.rd-bar i { display: block; height: 100%; }
.rd-mi { grid-column: 1 / -1; }
.rd-table-card { padding: 6px 10px; overflow-x: auto; }
.rd-table { width: 100%; border-collapse: collapse; }
.rd-table th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 8px 10px; }
.rd-table td { padding: 10px; border-top: 1px solid var(--border); font-size: 13.5px; }
.rd-cell { font-weight: 700; }
.rd-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.rd-meta .rd-chip, .rd-meta .rd-kr { margin-left: 0; }
.rd-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rd-five { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 8px; }
.rd-five > div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.rd-five b { font-size: 18px; font-weight: 900; }
.rd-spark { width: 100%; height: 46px; margin-top: 4px; }
.rd-warn { color: var(--at_risk); font-weight: 700; }
.rd-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form label.rd-opt { flex-direction: row; align-items: flex-start; gap: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; font-weight: 400; cursor: pointer; }
.rd-opt span { display: flex; flex-direction: column; }
.rd-opt small { color: var(--muted); }
.rd-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.rd-dec-list { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.rd-dec { border-top: 1px solid var(--border); padding-top: 10px; }
.rd-ex { font-weight: 700; font-size: 12.5px; }
.rd-ex.done { color: var(--on_track); } .rd-ex.todo { color: var(--at_risk); } .rd-ex.na { color: var(--muted); }
.rd-ex-btn { margin-top: 6px; }
.rd-log-row { display: grid; grid-template-columns: 70px 1.5fr 120px 1.3fr 1.2fr; gap: 12px; align-items: start; padding: 12px 4px; border-top: 1px solid var(--border); font-size: 13.5px; }
.rd-log-row:first-child { border-top: 0; }
.rd-host-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.rd-host-name { flex: 1; min-width: 0; }
.rd-host-avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 900; font-size: 18px; overflow: hidden; flex: none; position: relative; }
.rd-host-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rd-aspect { display: grid; grid-template-columns: 1fr 70px 56px; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--border); font-size: 13px; color: inherit; }
.rd-aspect:hover { background: var(--surface-2); text-decoration: none; }
.rd-focus { background: color-mix(in srgb, var(--off_track) 10%, transparent); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 12.5px; margin-top: 8px; }
@media (max-width: 800px) {
  .rd-summary { grid-template-columns: repeat(2, 1fr); }
  .rd-row { grid-template-columns: minmax(0, 1fr) 70px 96px; }
  .rd-row .rd-ideal, .rd-row .rd-act { display: none; }
  .rd-five { grid-template-columns: repeat(2, 1fr); }
  .rd-log-row { grid-template-columns: 1fr; }
  .rd-opts { grid-template-columns: 1fr; }
}

/* Radar > Orang: papan analisa host, tata letak bento (v1.4.1) */
.rd-bhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.rd-btitle { font-size: 26px; font-weight: 900; margin: 2px 0 0; }
.rd-bhead-r { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.rd-pick { display: flex; align-items: center; gap: 6px; }
.rd-pick select { font: inherit; font-weight: 700; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text); min-width: 150px; }
.rd-pf { margin: 0; }
.rd-gstat { display: flex; justify-content: center; margin: 6px 0 4px; }
.rd-pill { background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 6px 14px; font-size: 12.5px; font-weight: 700; }
.rd-bento { display: block; }
.rd-tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.rd-tile { background: color-mix(in srgb, var(--primary-soft) 55%, var(--surface)); border-radius: 22px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rd-tile-h { display: flex; flex-direction: column; margin-bottom: 4px; } .rd-tile-h b { font-size: 17px; }
.rd-chip2 { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 2px 9px; border-radius: 99px; align-self: flex-start; }
.rd-chip2.up { background: color-mix(in srgb, var(--on_track) 22%, transparent); color: var(--on_track); }
.rd-chip2.flat { background: color-mix(in srgb, var(--at_risk) 20%, transparent); color: var(--at_risk); }
.rd-chip2.down { background: color-mix(in srgb, var(--off_track) 20%, transparent); color: var(--off_track); }
.rd-chip2.mute { background: var(--surface-2); color: var(--muted); }
.rd-chip2.on-dark { background: rgba(255,255,255,.18); color: #fff; }
/* kartu host terpilih */
.rd-spot { grid-column: 1 / 4; grid-row: 1 / 3; background: linear-gradient(170deg, color-mix(in srgb, var(--garden) 30%, var(--surface)), color-mix(in srgb, var(--ocean) 18%, var(--surface))); padding: 16px; justify-content: flex-end; min-height: 330px; position: relative; }
.rd-spot .rd-host-avatar { width: 70%; max-width: 190px; height: auto; aspect-ratio: 4 / 5; border-radius: 50% 50% 16px 16px / 38% 38% 16px 16px; font-size: 64px; margin: 6px auto auto; background: color-mix(in srgb, var(--surface) 55%, transparent); }
.rd-spot-bar { background: rgba(31,39,37,.55); color: #fff; border-radius: 16px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; backdrop-filter: blur(6px); }
.rd-spot-bar b { display: block; font-size: 16px; } .rd-spot-bar span { font-size: 12px; opacity: .8; }
.rd-round { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; color: #1f2725; cursor: pointer; font-size: 15px; flex: none; }
.rd-spot-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
/* angka besar + titik */
.rd-big { grid-column: 4 / 10; grid-row: 1; }
.rd-big-top { display: flex; align-items: center; gap: 12px; }
.rd-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--ocean); color: #fff; display: grid; place-items: center; font-size: 16px; }
.rd-num { font-size: 44px; font-weight: 900; line-height: 1; }
.rd-dots { width: 100%; height: auto; margin-top: 4px; }
.rd-dotlab { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); }
/* tile gelap */
.rd-dark-stack { grid-column: 10 / 13; grid-row: 1 / 3; display: flex; flex-direction: column; gap: 14px; }
.rd-dark-stack > .rd-tile { flex: 1; }
.rd-dark { background: var(--ocean); color: #fff; }
.rd-outline { background: var(--surface); border: 2.5px solid var(--ocean); }
.rd-dark-k { font-size: 12px; opacity: .8; font-weight: 700; }
.rd-outline .rd-dark-k { color: var(--muted); opacity: 1; }
.rd-dark-big { font-size: 24px; font-weight: 900; }
.rd-dark-v { font-size: 20px; font-weight: 800; }
.rd-dark-s { font-size: 12.5px; opacity: .85; line-height: 1.45; }
.rd-dark-xl { font-size: 52px; font-weight: 900; line-height: 1; }
/* gauge */
.rd-gtile { grid-column: 4 / 7; }
.rd-gwrap { position: relative; max-width: 240px; margin: 0 auto; width: 100%; }
.rd-gauge { width: 100%; display: block; }
.rd-gnum { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; flex-direction: column; align-items: center; }
.rd-gnum b { font-size: 34px; font-weight: 900; line-height: 1; }
.rd-leg { display: grid; grid-template-columns: 12px 1fr auto 52px; gap: 8px; align-items: center; padding: 5px 0; font-size: 13px; color: inherit; }
.rd-leg:hover { text-decoration: none; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.rd-leg i { width: 10px; height: 10px; border-radius: 3px; } .rd-leg em { font-style: normal; font-weight: 800; text-align: right; font-size: 12px; }
/* tim */
.rd-team { grid-column: 7 / 10; }
.rd-teamnum { display: flex; flex-direction: column; } .rd-teamnum b { font-size: 40px; font-weight: 900; line-height: 1; color: var(--primary); }
.rd-ticks { display: flex; gap: 5px; align-items: flex-end; height: 70px; margin: 8px 0 4px; }
.rd-ticks i { flex: 1; max-width: 30px; border-radius: 99px; background: var(--surface-2); height: 40%; }
.rd-ticks i.t1 { background: var(--at_risk); height: 62%; } .rd-ticks i.t2 { background: var(--on_track); height: 100%; }
.rd-key { display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--surface-2); vertical-align: -1px; }
.rd-key.up { background: var(--on_track); } .rd-key.mid { background: var(--at_risk); }
/* tren */
.rd-trendtile { grid-column: 1 / 4; }
.rd-trend { width: 100%; height: 96px; }
.rd-targetcard { grid-column: 4 / 13; flex-direction: row; gap: 24px; align-items: center; flex-wrap: wrap; }
.rd-tc-l { display: flex; flex-direction: column; gap: 4px; flex: 1 1 200px; }
.rd-tc-r { display: flex; flex-direction: column; gap: 6px; flex: 1.4 1 260px; }
.rd-pillrow { display: flex; justify-content: space-between; gap: 10px; padding: 8px 16px; border-radius: 99px; background: rgba(255,255,255,.14); font-size: 13.5px; }
.rd-pillrow.lead { background: #fff; color: #1f2725; }
.rd-wide { grid-column: 4 / 13; grid-row: 1; }
/* rail kanan */
.rd-rail { background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--border); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.rd-rail-h { display: flex; flex-direction: column; margin-bottom: 4px; } .rd-rail-h b { font-size: 18px; }
.rd-hrow { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; color: inherit; }
.rd-hrow:hover { background: var(--surface-2); text-decoration: none; }
.rd-hrow.on { background: var(--primary-soft); }
.rd-hrow .rd-host-avatar { width: 38px; height: 38px; font-size: 14px; }
.rd-hrow-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.rd-rail-note { background: var(--ocean); color: #fff; border-radius: 16px; padding: 12px 14px; font-size: 12.5px; line-height: 1.5; margin-top: 8px; }
@media (max-width: 860px) {
  .rd-tiles > .rd-tile, .rd-tiles > .rd-dark-stack { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .rd-spot { min-height: 280px; }
}

/* Analisa agent (v1.6.0): Markdown terbatas yang sudah di-escape */
.md { line-height: 1.6; max-width: 760px; }
.md h3, .md h4, .md h5 { margin: 1.2em 0 .4em; }
.md table { border-collapse: collapse; margin: .8em 0; width: 100%; }
.md th, .md td { border: 1px solid var(--border, #ddd); padding: 6px 10px; text-align: left; vertical-align: top; }
.md th { background: var(--surface-2, #f4f1ea); }
.md pre { background: var(--surface-2, #f4f1ea); padding: 10px 12px; border-radius: 8px; overflow-x: auto; }
.md code { font-family: ui-monospace, Menlo, monospace; font-size: .92em; }
.md blockquote { margin: .8em 0; padding: 2px 12px; border-left: 3px solid var(--border, #ddd); color: var(--muted, #666); }

.stat-main { position: relative; }
.stat-edit { position: absolute; top: 8px; right: 8px; color: var(--muted); }
.stat-edit:hover { color: var(--primary); }
.stat-edit .ic { width: 16px; height: 16px; }

.kr-search { position: relative; display: flex; align-items: center; flex: 0 1 300px; }
.toolbar .legend { min-width: 300px; }
.toolbar-okr .legend { order: 10; flex: 1 1 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.toolbar-okr .legend > span { display: inline-flex; align-items: center; gap: 6px; }
.kr-search > .ic { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.kr-search input { width: 100%; padding-left: 36px; padding-right: 84px; }
.kr-search-count { position: absolute; right: 12px; pointer-events: none; }
.kr-row[hidden], .kr-block[hidden], .obj-node[hidden], .add-kr[hidden] { display: none !important; }
@media (max-width: 640px) { .kr-search { flex-basis: 100%; } }

.link-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; }
.link-panel form { display: inline; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 14px; }
.hero-checkin { margin-top: 0; background: var(--hero-text); color: var(--primary-strong, var(--primary)); border-color: transparent; font-weight: 700; }
.hero-checkin-n { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 12px; }
.hub { display: flex; flex-direction: column; gap: 18px; min-width: min(560px, 80vw); max-height: 70vh; overflow-y: auto; padding: 8px 20px 20px; }
.hub-sec h4 { margin: 0 0 6px; font-size: 14px; }
.hub-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px dashed var(--border); }
.hub-main { display: flex; flex-direction: column; min-width: 0; }
.hub-main strong { overflow-wrap: anywhere; }

/* streak check-in mingguan */
:root { --flame: #E58A2B; --flame-in: #F6C453; --flame-moon: #FFF6DF; --flame-off: #8A9A96; --flame-off-in: #A9B6B2; }
.flame .f-out { fill: var(--flame); }
.flame .f-in { fill: var(--flame-in); }
.flame .f-moon { fill: var(--flame-moon); }
.flame.off .f-out { fill: var(--flame-off); }
.flame.off .f-in { fill: var(--flame-off-in); }
.flame.off .f-moon { fill: var(--hero-from, #2A4F4A); opacity: .55; }
.streak { display: flex; align-items: center; gap: 12px; min-width: 0; }
.streak-text { display: flex; flex-direction: column; min-width: 0; max-width: 300px; }
.streak-text strong { font-size: 17px; font-weight: 900; line-height: 1.2; }
.streak-text span { color: var(--hero-muted); font-size: 12.5px; line-height: 1.35; }
.streak-weeks { display: flex; gap: 4px; align-items: center; }
.streak-weeks i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--hero-muted); opacity: .7; }
.streak-weeks i.on { background: var(--flame); border-color: var(--flame); opacity: 1; }
.streak-weeks i.now { width: 11px; height: 11px; opacity: 1; box-shadow: 0 0 0 2px color-mix(in srgb, var(--hero-text) 40%, transparent); }
@media (max-width: 640px) { .streak { flex-wrap: wrap; } .streak-text { max-width: none; flex: 1 1 180px; } }

/* Skill tim (v1.16.0): ikon, kartu skill di Profil, tabel syarat di Pengaturan */
.skill-ico { display: inline-block; vertical-align: middle; height: auto; }
.skill-ico-sm { width: 28px; margin-right: 6px; }
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.skill-card { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 14px 10px; border-radius: 14px; background: var(--surface-2); }
.skill-card strong { font-size: 13px; line-height: 1.3; }
.skill-card .skill-ico { width: 64px; }
.skill-card.is-off .skill-ico { filter: grayscale(1); opacity: .35; }
.skill-card.is-off strong { color: var(--muted); }
.skill-bar { width: 100%; height: 6px; border-radius: 99px; background: var(--border, rgba(0, 0, 0, .1)); overflow: hidden; }
.skill-bar span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }

/* Bar progres lain disamakan dengan .pbar: lintasan lembut, isi pekat, tanpa gradasi */
.skill-bar, .rd-bar, .rt-track, .fin-bar-track { background: color-mix(in srgb, var(--primary) 16%, var(--surface)); }
.skill-bar span { background: color-mix(in srgb, var(--primary) 78%, #000); }
body .ds-track, body .ds-member .ds-track, body .ds-meter-track, body .ds-team-track { background: color-mix(in srgb, var(--primary) 16%, var(--surface)); }
body .ds-track > div, body .ds-member .ds-track > div, body .ds-meter-fill, body .ds-team-track > div { background: color-mix(in srgb, var(--primary) 78%, #000); }

/* Detail KR: kartu bergaya design system (ikon, pil progres, pohon centang, baris properti) */
.ds-card { padding: 20px 22px; }
.ds-top { display: flex; align-items: flex-start; gap: 14px; }
.ds-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--text); }
.ds-icon .ic { width: 24px; height: 24px; }
.ds-titles { flex: 1; min-width: 0; }
.ds-titles h2 { font-size: 22px; font-weight: 900; margin: 2px 0 0; }
.ds-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.ds-more { position: relative; }
.ds-more-btn { list-style: none; cursor: pointer; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: 20px; line-height: 1; box-shadow: var(--shadow); }
.ds-more-btn::-webkit-details-marker { display: none; }
.ds-more-btn:hover { background: var(--surface-2); }
.ds-menu { position: absolute; right: 0; top: 44px; z-index: 20; min-width: 190px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 28px rgba(0, 0, 0, .18); padding: 6px; display: flex; flex-direction: column; }
.ds-menu form { display: contents; }
.ds-menu button, .ds-menu .btn { display: flex; align-items: center; gap: 8px; width: 100%; justify-content: flex-start; text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: none; box-shadow: none; color: var(--text); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.ds-menu button:hover, .ds-menu .btn:hover { background: var(--surface-2); }
.ds-menu .ds-danger { color: var(--off_track); }
.ds-menu .ic { width: 16px; height: 16px; }
.ds-pill { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 7px 16px 7px 10px; width: 100%; max-width: 460px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.ds-pill-ic { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--muted); color: var(--muted); display: grid; place-items: center; }
.ds-pill-ic .ic { width: 12px; height: 12px; }
.ds-pill-val { flex: none; font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.ds-pill .pbar { flex: 1; min-width: 60px; }
.ds-pill strong { font-size: 13px; font-variant-numeric: tabular-nums; }
.ds-pace { margin: 6px 0 0 12px; }
.ds-checklist { list-style: none; margin: 14px 0 0 26px; padding: 0; }
.ds-checklist li { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 0 7px 26px; }
.ds-checklist li::before { content: ''; position: absolute; left: 0; top: -50%; bottom: 50%; width: 16px; border-left: 2px solid var(--border); border-bottom: 2px solid var(--border); border-bottom-left-radius: 10px; }
.ds-checklist li:first-child::before { top: -14px; }
.ds-checklist a { color: var(--muted); font-weight: 400; }
.ds-checklist .is-done a { color: var(--text); }
.ds-tick { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--muted); display: grid; place-items: center; color: var(--surface); }
.is-done .ds-tick { background: var(--text); border-color: var(--text); }
.ds-tick .ic { width: 12px; height: 12px; stroke-width: 3; }
.ds-props { margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
.ds-props > div { display: flex; align-items: center; gap: 12px; }
.ds-props dt { flex: none; width: 140px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 400; }
.ds-props dt .ic { width: 16px; height: 16px; }
.ds-props dd { margin: 0; display: flex; align-items: center; gap: 6px; font-weight: 700; }
.ds-chip { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.ds-upd { margin: 12px 0 0; }
@media (max-width: 760px) { .ds-top { flex-wrap: wrap; } .ds-actions { width: 100%; justify-content: flex-end; } .ds-props dt { width: 110px; } }

/* Akun di pojok kanan atas */
.top-me { position: relative; margin-left: auto; }
.top-me summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 4px; border-radius: 999px; border: 1px solid transparent; }
.top-me summary::-webkit-details-marker { display: none; }
.top-me summary:hover, .top-me[open] summary { background: var(--surface); border-color: var(--border); }
.top-me-name { display: flex; flex-direction: column; line-height: 1.2; text-align: left; padding-right: 6px; }
.top-me-name strong { font-size: 13px; }
.top-me-name small { color: var(--muted); font-size: 11px; }
.top-me-menu { position: absolute; right: 0; top: 48px; z-index: 30; min-width: 180px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 28px rgba(0, 0, 0, .18); padding: 6px; display: flex; flex-direction: column; }
.top-me-menu a, .top-me-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; text-align: left; }
.top-me-menu a:hover, .top-me-menu button:hover { background: var(--surface-2); text-decoration: none; }
.top-me-menu .ic { width: 16px; height: 16px; }
@media (max-width: 760px) { .top-me-name { display: none; } .top-me summary { padding: 2px; } }

/* Profil */
.avatar.pf { width: 124px; height: 124px; font-size: 44px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px var(--primary); }
.pf { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.pf-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 0 4px; text-align: center; }
.pf-ava { position: relative; margin-bottom: 8px; }
.pf-pen { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--surface); background: var(--primary); color: var(--on-primary); display: grid; place-items: center; cursor: pointer; padding: 0; box-shadow: var(--shadow); }
.pf-pen:hover { background: var(--primary-strong); }
.pf-pen .ic { width: 16px; height: 16px; }
.pf-ava .pf-pen { position: absolute; right: -4px; top: -2px; }
/* Tim & User: lencana pensil di pojok avatar (Super Admin mengubah foto user) */
.ava-edit { position: relative; display: inline-block; vertical-align: middle; }
.ava-pen { position: absolute; right: -6px; top: -6px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--surface); background: var(--primary); color: var(--on-primary); display: grid; place-items: center; cursor: pointer; padding: 0; }
.ava-pen:hover { background: var(--primary-strong); }
.ava-pen .ic { width: 8px; height: 8px; }
.pf-pen-sm { width: 28px; height: 28px; background: var(--primary-soft); color: var(--primary-strong); border-color: transparent; box-shadow: none; }
.pf-pen-sm:hover { background: color-mix(in srgb, var(--primary) 25%, var(--surface)); }
.pf-pen-sm .ic { width: 14px; height: 14px; }
.pf-name { display: flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 900; margin: 0; }
.pf-role { display: inline-block; padding: 6px 18px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-strong); font-weight: 700; font-size: 13px; }
.pf-amal { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.pf-amal-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pf-amal-t { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 900; }
.pf-amal-t .ic { color: var(--accent-2); }
.pf-amal-n strong { font-size: 30px; font-variant-numeric: tabular-nums; }
.pf-amal .pbar { height: 12px; }
.pf-amal .pbar-dot { width: 16px; height: 16px; margin-top: -8px; }
.pf-amal-sub { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.pf-amal number-flow { font-variant-numeric: tabular-nums; }
.pf-amal .pf-nf { font-weight: inherit; }
.pf-amal-note { margin: 0; font-size: 12px; color: var(--muted); }
.pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pf-stats > div { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px 10px; text-align: center; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.pf-stats strong { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; }
.pf-stats span { font-size: 12px; color: var(--muted); }
.pf-sec { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px 18px; box-shadow: var(--shadow); }
.pf-sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.pf-sec-h h3 { margin: 0; font-size: 17px; font-weight: 900; }
.pf-how { margin: 0 0 10px; }
.pf-empty { margin: 10px 0 0; }
.pf-rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; margin-top: 10px; }
.pf-skill { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 14px 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border)); }
.pf-skill .skill-ico { width: 60px; height: auto; }
.pf-skill strong { font-size: 13.5px; line-height: 1.25; min-height: 2.5em; display: flex; align-items: center; }
.pf-skill .pbar { width: 100%; }
.pf-lv { font-size: 12px; color: var(--muted); font-weight: 700; }
.pf-skill.is-off { opacity: .92; }
.pf-skill.is-off .skill-ico { filter: grayscale(.6); opacity: .65; }
.pf-segs { display: flex; gap: 4px; width: 100%; }
.pf-segs i { flex: 1; height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--primary) 16%, var(--surface)); }
.pf-segs i.on { background: color-mix(in srgb, var(--primary) 78%, #000); }
.pf-more { margin-top: 12px; }
.pf-more summary { cursor: pointer; font-weight: 700; color: var(--primary-strong); font-size: 13.5px; }
.pf-rail-dim .pf-skill { border-color: var(--border); }
@media (max-width: 760px) {
  .pf-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin-inline: -18px; padding: 4px 18px 8px; scrollbar-width: none; }
  .pf-rail::-webkit-scrollbar { display: none; }
  .pf-skill { flex: none; width: 150px; scroll-snap-align: start; }
  .pf-name { font-size: 24px; }
}
@media (prefers-reduced-motion: no-preference) { .pf-skill { transition: transform .2s ease; } .pf-skill:hover { transform: translateY(-3px); } }

/* menu berkelompok dan bar bawah HP */
.nav-group { margin: 14px 12px 4px; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; opacity: .55; }
.sidebar nav .nav-group:first-child { margin-top: 2px; }
.bottom-bar { display: none; }
@media (max-width: 860px) {
  .bottom-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom, 0px); }
  .bottom-bar a, .bottom-bar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px;
    background: none; border: 0; color: var(--muted); font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
  .bottom-bar a.active { color: var(--primary); }
  .bottom-bar .ic { width: 22px; height: 22px; }
  .bottom-bar a:hover { text-decoration: none; }
  .content { padding-bottom: 90px; }
}

/* kelompok menu terbungkus: hanya kelompok halaman aktif yang terbuka */
details.nav-group { margin: 0; font-size: inherit; font-weight: inherit; letter-spacing: 0; text-transform: none; opacity: 1; }
details.nav-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; margin: 6px 0 2px; padding: 8px 12px;
  border-radius: 10px; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--side-text); opacity: .7; }
details.nav-group > summary::-webkit-details-marker { display: none; }
details.nav-group > summary::after { content: "›"; font-size: 16px; transition: transform .15s; }
details.nav-group[open] > summary::after { transform: rotate(90deg); }
details.nav-group > summary:hover { background: rgba(255, 255, 255, .08); opacity: 1; }
details.nav-group > a { margin-left: 4px; }

/* ---------- Tema: hijau, biru, pink (dominan putih; warna Madeena sebagai aksen) ---------- */
:root[data-palette="hijau"] {
  --bg: #F6F7F9; --surface: #FFFFFF; --surface-2: #F1F3F6; --border: #E4E7EC;
  --text: #1F2933; --muted: #667085;
  --primary: #407F77; --primary-strong: #326861; --primary-soft: #E2EDEA; --on-primary: #FFFFFF; --accent-2: #407F77; --focus: rgba(64, 127, 119, .28);
  --side-bg: #FFFFFF; --side-bg-2: #F3F5F8; --side-text: #1F2933; --side-muted: #667085;
  --hero-from: #E2EDEA; --hero-to: #FFFFFF; --hero-text: #1F2933; --hero-muted: #667085;
  --arch-fill: #407F77; --arch-track: rgba(31, 41, 51, .07);
  --flame-off: #98A2B3; --flame-off-in: #C0C7D2; --marker: #1F2933; --shadow: 0 1px 2px rgba(16, 24, 40, .06); --backdrop: rgba(16, 24, 40, .4);
  color-scheme: light;
}
:root[data-palette="biru"] {
  --bg: #F6F7F9; --surface: #FFFFFF; --surface-2: #F1F3F6; --border: #E4E7EC;
  --text: #1F2933; --muted: #667085;
  --primary: #466689; --primary-strong: #364F6C; --primary-soft: #E6EDF5; --on-primary: #FFFFFF; --accent-2: #466689; --focus: rgba(70, 102, 137, .28);
  --side-bg: #FFFFFF; --side-bg-2: #F3F5F8; --side-text: #1F2933; --side-muted: #667085;
  --hero-from: #E6EDF5; --hero-to: #FFFFFF; --hero-text: #1F2933; --hero-muted: #667085;
  --arch-fill: #466689; --arch-track: rgba(31, 41, 51, .07);
  --flame-off: #98A2B3; --flame-off-in: #C0C7D2; --marker: #1F2933; --shadow: 0 1px 2px rgba(16, 24, 40, .06); --backdrop: rgba(16, 24, 40, .4);
  color-scheme: light;
}
:root[data-palette="pink"] {
  --bg: #F6F7F9; --surface: #FFFFFF; --surface-2: #F1F3F6; --border: #E4E7EC;
  --text: #1F2933; --muted: #667085;
  --primary: #BF5340; --primary-strong: #A5402F; --primary-soft: #FDDBD3; --on-primary: #FFFFFF; --accent-2: #BF5340; --focus: rgba(191, 83, 64, .28);
  --side-bg: #FFFFFF; --side-bg-2: #F3F5F8; --side-text: #1F2933; --side-muted: #667085;
  --hero-from: #FCE8EF; --hero-to: #FFFFFF; --hero-text: #1F2933; --hero-muted: #667085;
  --arch-fill: #C2557B; --arch-track: rgba(31, 41, 51, .07);
  --flame-off: #98A2B3; --flame-off-in: #C0C7D2; --marker: #1F2933; --shadow: 0 1px 2px rgba(16, 24, 40, .06); --backdrop: rgba(16, 24, 40, .4);
  color-scheme: light;
}
:root[data-palette] .sidebar { background-image: none; border-right: 1px solid var(--border); }
:root[data-palette] .shell { background: linear-gradient(to right, var(--side-bg) var(--sidebar), transparent 0); }
:root[data-palette] .brand-logo { filter: brightness(0) opacity(.85); }
:root[data-palette] .sidebar nav a:hover, :root[data-palette] .me:hover, :root[data-palette] details.nav-group > summary:hover { background: rgba(16, 24, 40, .05); }
:root[data-palette] .sidebar nav a.active { background: var(--primary-soft); color: var(--primary-strong); }
:root[data-palette] .period-switch select { border-color: var(--border); }
:root[data-palette] .sidebar-foot { border-top-color: var(--border); }
:root[data-palette] .sidebar .btn-icon:hover { background: rgba(16, 24, 40, .06); }
:root[data-palette] .hero { border: 1px solid var(--border); }
:root[data-palette] .hero-checkin { background: var(--primary); color: var(--on-primary); }
:root[data-palette] .hero-checkin-n { background: var(--on-primary); color: var(--primary-strong); }
:root[data-palette] .hero .hero-quote { color: var(--primary-strong); }
:root[data-palette] .arch::after { border-color: rgba(31, 41, 51, .12); }
:root[data-palette] .arch { border-color: rgba(31, 41, 51, .18); }
:root[data-palette] .btn-primary { color: var(--on-primary); }
:root[data-palette] .login-art { background-image: none; }

/* Beranda: lima kartu ringkasan, tab pekerjaan saya, tombol tampilkan lainnya */
.stats-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 860px) { .stats-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .stats-5 { grid-template-columns: repeat(2, 1fr); } }
.lm-item[hidden], .dpanel[hidden], .lm-btn[hidden] { display: none !important; }
.lm-btn { margin-top: 10px; width: 100%; justify-content: center; }
.dtabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin: -4px 0 14px; overflow-x: auto; }
.dtabs button { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.dtabs button:hover { color: var(--text); }
.dtabs button.on { color: var(--primary); border-bottom-color: var(--primary); }
.dtab-n { font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.dtabs button.on .dtab-n { background: var(--primary-soft); color: var(--primary); }
.dtab-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--at_risk); }

/* ikon dan pemilih tema di menu */
details.nav-group > summary { gap: 10px; justify-content: flex-start; }
details.nav-group > summary > span { flex: 1; }
details.nav-group > summary .ic { width: 16px; height: 16px; }
.top-me-menu .theme-pick { padding: 8px 10px 6px; border-top: 1px solid var(--border); margin-top: 4px; }
.theme-pick-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.top-me-menu .theme-pick-row { display: flex; gap: 8px; }
.top-me-menu .theme-pick-row button { width: 28px; height: 28px; padding: 0; justify-content: center; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); }
.top-me-menu .theme-pick-row button.on { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.theme-pick-row i { width: 16px; height: 16px; border-radius: 50%; display: block; }

.top-me-menu .theme-pick-row button[data-palette="pink"] i { border: 1px solid rgba(0, 0, 0, .12); }

/* kartu ringkasan Beranda: judul, titik status, angka */
.stats-5 .stat { padding: 14px 18px 16px; gap: 6px; }
.stats-5 .stat-value { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 30px; }
.stats-5 .stat-value .dot { width: 12px; height: 12px; flex: none; }
:root[data-palette] .hero-name { color: var(--primary); }

/* Beranda: header sederhana (sapaan, streak, Check-in) dan kartu dikelompokkan OKRs / KPIs */
.dh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 4px 0 20px; }
.dh h2 { font-size: 24px; font-weight: 900; }
.dh p { margin: 2px 0 0; font-size: 13.5px; }
.dh-actions { display: flex; align-items: center; gap: 12px; }
.dh-streak { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 700; cursor: default; }
.dh-streak .flame { width: 18px; height: 22px; }
.dh .hero-checkin-n { background: var(--on-primary); color: var(--primary-strong); }
.hero-name { color: var(--primary); }
.stat-group { margin-bottom: 18px; }
.stat-group-h { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 10px; }
.stat-group .stats { margin-bottom: 0; }
.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-groups { display: grid; grid-template-columns: 3fr 2fr; gap: 0 24px; align-items: start; }
@media (max-width: 900px) { .stat-groups { grid-template-columns: minmax(0, 1fr); } }

/* kartu North Star di Beranda */
.ns { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 22px 18px; margin-bottom: 18px; }
.ns-tag { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ns-edit { color: var(--muted); vertical-align: middle; }
.ns-edit .ic { width: 15px; height: 15px; }
.ns-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.ns-big { font-size: 34px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
/* NumberFlow menambah padding atas-bawah (mask); diimbangi supaya kartu tidak bergeser saat teks diganti (v1.81.0) */
.ns-big number-flow { line-height: 1.1; margin: -.25em 0; }
/* Tinggi dikunci supaya teks di bawah angka (sudah terkumpul) tidak ikut bergeser selama dan sesudah animasi (v1.82.1) */
.ns-big { height: 1.1em; }
.ns-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.ns-state { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--ns-c) 14%, transparent); color: var(--text); }
.ns-state .dot { margin: 0; width: 10px; height: 10px; }
.ns-track { position: relative; height: 14px; border-radius: 7px; background: var(--surface-2); margin: 40px 0 36px; }
.ns-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; background: var(--ns-c); }
.ns-path { position: absolute; top: 4px; bottom: 4px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--ns-c) 45%, transparent) 0 6px, transparent 6px 12px); }
.ns-tick { position: absolute; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; background: var(--border); }
.ns-flag { position: absolute; top: -34px; transform: translateX(-50%); font-size: 12px; color: var(--muted); white-space: nowrap; text-align: center; line-height: 1.3; }
.ns-flag b { display: block; color: var(--text); font-weight: 700; }
.ns-flag.last { transform: translateX(-100%); text-align: right; }
.ns-now { position: absolute; top: 22px; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: var(--ns-c); white-space: nowrap; }
.ns-next { margin: 0; font-size: 14px; }
.ns-empty { padding-bottom: 20px; }
.ns-empty .ns-next { margin-top: 10px; color: var(--muted); }
@media (max-width: 520px) { .ns-big { font-size: 28px; } .ns-flag { font-size: 11px; } }

/* Beranda: dua baris dengan garis kolom yang sama (kiri fleksibel, kanan 340px) */
.top-row { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: stretch; margin-bottom: 18px; }
.top-row > .ns { margin-bottom: 0; display: flex; flex-direction: column; }
.top-row > .ns .ns-next { margin-top: auto; }
.top-row > .stat-groups { display: flex; flex-direction: column; justify-content: space-evenly; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 20px; }
.top-row .stat-group { margin-bottom: 0; padding: 8px 0; }
.top-row .stat-group + .stat-group { border-top: 1px solid var(--border); }
.top-row .stat-group-h { font-size: 12px; margin-bottom: 3px; color: var(--muted); }
.top-row .stats { gap: 0; }
.top-row .stat { background: none; border: 0; border-radius: 0; padding: 0 12px; gap: 0; }
.top-row .stat:first-child { padding-left: 0; }
.top-row .stat + .stat { border-left: 1px solid var(--border); }
.top-row .stat-label { font-size: 11.5px; order: 2; font-weight: 400; }
.top-row .stat-value { font-size: 20px; line-height: 1.15; gap: 6px; order: 1; }
.top-row .stat-value .dot { width: 8px; height: 8px; }
.ck-streak { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px 1px 5px; border-radius: 999px; background: var(--on-primary); color: var(--text); font-size: 13px; font-weight: 900; }
.ck-streak .flame { width: 12px; height: 15px; }
@media (max-width: 1100px) {
  .top-row { grid-template-columns: minmax(0, 1fr); }
  .top-row > .stat-groups { display: grid; grid-template-columns: 3fr 2fr; gap: 0 24px; padding: 6px 20px; }
  .top-row .stat-group + .stat-group { border-top: 0; }
}
@media (max-width: 900px) { .top-row > .stat-groups { grid-template-columns: minmax(0, 1fr); gap: 0; } .top-row .stat-group + .stat-group { border-top: 1px solid var(--border); } }

/* sinyal status North Star: teks sederhana di bawah angka */
.ns-state { display: flex; align-items: center; gap: 6px; margin-top: 4px; padding: 0; background: none; border-radius: 0; font-size: 13px; font-weight: 700; color: var(--ns-c); }
.ns-state .dot { width: 8px; height: 8px; }

/* motion North Star: hanya transform dan opacity, dan hanya jika pengguna tidak meminta gerak berkurang */
.ns-fill { transform-origin: left center; }
.ns-gain { display: inline-block; margin-left: 10px; font-size: 14px; font-weight: 700; color: var(--on_track); vertical-align: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .ns-anim .ns-fill { animation: nsFill 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  .ns-anim .ns-path, .ns-anim .ns-state { animation: nsFade .5s ease .9s both; }
  .ns-anim .ns-now, .ns-anim .ns-flag, .ns-anim .ns-tick { animation: nsFade .5s ease 1s both; }
  .ns-grow .ns-fill { animation: nsGrow 1.4s cubic-bezier(.2, .7, .2, 1) both; }
  .ns-gain { animation: nsFloat 3s ease-out both; }
  .ns-flag.ns-hit { animation: nsHit 1.2s ease-out 1; }
  .ns-live .ns-path { animation: nsMarch 1.6s linear infinite; }
  .ns-live .ns-now { animation: nsBob 3.2s ease-in-out infinite; }
}
@keyframes nsFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes nsGrow { from { transform: scaleX(var(--ns-from, 0)); } to { transform: scaleX(1); } }
@keyframes nsFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nsFloat { 0% { opacity: 0; transform: translateY(8px); } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes nsHit { 0% { scale: 1; } 30% { scale: 1.25; } 100% { scale: 1; } }
@keyframes nsMarch { to { background-position: 12px 0; } }
@keyframes nsBob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(2px); } }

/* gaya bar North Star: jalur pucat, isi pekat, penanda bulat, area arsiran menuju tonggak */
.ns-track { background: color-mix(in srgb, var(--ns-c) 13%, transparent); margin-bottom: 44px; }
.ns-path { top: 0; bottom: 0; border-radius: 0 7px 7px 0; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ns-c) 38%, transparent) 0 4px, transparent 4px 8px); }
.ns-dot { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--ns-c); border: 4px solid var(--surface); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ns-c) 40%, var(--surface)); z-index: 2; box-sizing: border-box; }
.ns-now { top: 30px; }
@media (prefers-reduced-motion: no-preference) {
  .ns-anim .ns-dot { animation: nsDot 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  .ns-grow .ns-dot { animation: nsDotGrow 1.4s cubic-bezier(.2, .7, .2, 1) both; }
  .ns-live .ns-path { animation: nsMarch 1.6s linear infinite; }
}
@keyframes nsDot { from { left: 0; } to { left: var(--p); } }
@keyframes nsDotGrow { from { left: calc(var(--p) * var(--ns-from, 0)); } to { left: var(--p); } }
@keyframes nsMarch { to { background-position: 11.31px 0; } }

/* Hipotesis dampak initiative (v1.31.0) */
details.hip { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); margin: 4px 0; }
details.hip > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 14px; border-radius: 12px; }
details.hip > summary::-webkit-details-marker { display: none; }
details.hip > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.hip-q { font-weight: 700; flex: 1 1 220px; }
.hip-badge { font-size: 11.5px; padding: 2px 9px; border-radius: 99px; background: var(--primary-soft); color: var(--primary-strong); font-weight: 700; }
.hip-btn { font-size: 12.5px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); font-weight: 700; }
details.hip[open] .hip-btn { display: none; }
.hip-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.hip-body [hidden] { display: none; }
.hip-conf small { width: 100%; }
.hip-preview { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--primary-soft); color: var(--text); font-size: 13.5px; }
.hip-nudge { margin: 0 0 4px; }
.hip-conf .conf-opt input:checked + span { color: var(--primary-strong); background: var(--primary-soft); }
.hip-hist-title { margin: 14px 0 6px; }
.hip-block { margin: 0; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--at_risk) 14%, transparent); }
.hip-utama-label small { margin-left: 4px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Halaman KR dan initiative: rapi (v1.33.2) */
.ds-card .kpi-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .ds-card .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .ds-card .kpi-grid { grid-template-columns: repeat(6, 1fr); } }
.hip-cov { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; background: var(--surface-2); }
.hip-cov-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-bottom: 8px; }
.hip-cov-pct { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.hip-cov-note { margin: 8px 0 0; line-height: 1.5; }
.hip-cov-disc { white-space: nowrap; opacity: .8; }
.hip-cov-kurang .hip-cov-pct { color: var(--at_risk); }
.hip-cov-cukup .hip-cov-pct { color: var(--on_track); }
.ini-item { margin-bottom: 8px; }
.ini-item > .tree-node { margin-bottom: 0; }
.ini-hip { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px 8px 0 36px; }
.hip-chip { display: inline-block; padding: 1px 9px; border-radius: 99px; background: var(--primary-soft); color: var(--primary-strong); font-weight: 700; font-size: 12px; }
.hip-chip-mute { background: var(--surface-2); color: var(--muted); font-weight: 600; }
.hip-chip-warn { background: color-mix(in srgb, var(--at_risk) 16%, transparent); color: var(--at_risk); }
.tree { container-type: inline-size; }
@container (max-width: 640px) {
  .tree-ini { grid-template-columns: 18px auto minmax(0, 1fr) auto; grid-template-areas: "chev status main ava" ". count bar act"; row-gap: 8px; }
  .tree-ini > .tree-chev { grid-area: chev; }
  .tree-ini > .ini-status { grid-area: status; }
  .tree-ini > .tree-main { grid-area: main; }
  .tree-ini > .tree-ava { grid-area: ava; }
  .tree-ini > .tree-count { grid-area: count; text-align: left; }
  .tree-ini > .tree-bar { grid-area: bar; }
  .tree-ini > .tree-act { grid-area: act; }
}
.ini-item > .tree-node > .tree-row { margin-bottom: 0; }
.ini-item { margin-bottom: 12px; }
.ini-hip { padding-bottom: 2px; }
.hip-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 4px 0 10px; }
.hip-stats > div { background: var(--surface-2); border-radius: 12px; padding: 9px 12px; display: flex; flex-direction: column; gap: 2px; }
.hip-stats strong { font-size: 15px; }
.hip-stats .accent { color: var(--primary); }
.hip-reading { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); }
.hip-reading-warn { background: color-mix(in srgb, var(--at_risk) 14%, transparent); }
@media (min-width: 700px) { .ds-card .kpi-grid.kpi-grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .ds-card .kpi-grid.kpi-grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Drill-down Objective > KR > initiative (halaman OKR dan Beranda) */
.kr-sum { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.kr-sum::-webkit-details-marker { display: none; }
.kr-sum > .kr-row { flex: 1; min-width: 0; }
.kr-block-flat { cursor: default; }
.chev-sp { flex: none; width: 12px; }
.kr-inis { margin: -2px 0 6px 5px; border-left: 2px solid var(--border); padding-left: 20px; }
.drill-ini { display: grid; grid-template-columns: 8px 18px minmax(0, 1fr) 32px 96px 110px 40px; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--border); }
.drill-ini:first-child { border-top: 0; }
.drill-ini-title { font-weight: 700; color: var(--text); }
.drill-ini-owner { display: flex; justify-content: center; }
.drill-ini-main .avatar { vertical-align: middle; }
.drill-ini-prog { display: flex; flex-direction: column; gap: 4px; }
.drill-ini-prog strong { font-size: 13px; font-variant-numeric: tabular-nums; }
.drill-ini-bar { height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.drill-ini-bar i { display: block; height: 100%; background: var(--primary); }
.task-ring { --p: 0; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: conic-gradient(var(--on_track) calc(var(--p) * 1%), var(--border) 0); }
.task-ring b { width: 28px; height: 28px; border-radius: 50%; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.task-ring-none { background: none; color: var(--muted); }
@media (max-width: 640px) { .drill-ini { grid-template-columns: 8px 18px minmax(0, 1fr) auto; row-gap: 8px; } .drill-ini > .badge { grid-column: 3; justify-self: start; } .drill-ini-owner { grid-column: 4; grid-row: 1; } .kr-inis { margin-left: 8px; padding-left: 10px; } }
.lvl-ic { flex: none; display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; }
.lvl-ic .ic { width: 20px; height: 20px; }
.lvl-obj { color: var(--muted); }
.lvl-kr { color: var(--done); }
.lvl-ini { color: var(--on_track); }
.lvl-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.obj-title-row .lvl-ic { margin-right: 8px; }
.kr-titleline, .ini-titleline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.obj-mini-title .lvl-ic, .report-tbl .lvl-ic, .detail-title .lvl-ic { vertical-align: middle; margin-right: 8px; }
.hub-sec h4 { display: flex; align-items: center; gap: 8px; }

/* Progres seiring waktu (detail KR) */
.pg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.pg-head .card-title { margin: 0; }
.pg-ctl { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.pg-ctl select { padding: 6px 10px; }
.pg-ctl #pg-prev, .pg-ctl #pg-next { min-width: 34px; padding-inline: 0; font-size: 18px; line-height: 1; }
.pg-ctl #pg-prev:disabled, .pg-ctl #pg-next:disabled { opacity: .4; cursor: default; }
.pg-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 18px; margin-bottom: 12px; font-size: 13px; }
.pg-sum > div { display: flex; flex-direction: column; gap: 2px; }
.pg-k { font-size: 11.5px; color: var(--muted); }
.pg-sum strong { font-size: 14px; }
.pg-chart { height: 320px; }
.pg-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 10px 0; }
.pg-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.pg-sw-g { background: color-mix(in srgb, var(--on_track) 35%, transparent); }
.pg-sw-y { background: color-mix(in srgb, var(--at_risk) 35%, transparent); }
.pg-sw-r { background: color-mix(in srgb, var(--off_track) 35%, transparent); }
.pg-weeks { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.pg-tbl { border-collapse: collapse; width: 100%; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pg-tbl th, .pg-tbl td { padding: 8px 12px; text-align: right; white-space: nowrap; border-left: 1px solid var(--border); }
.pg-tbl thead th { color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--border); }
.pg-tbl tbody th { text-align: left; position: sticky; left: 0; background: var(--surface); border-left: 0; color: var(--muted); font-weight: 700; }
.pg-tbl tbody tr + tr td, .pg-tbl tbody tr + tr th { border-top: 1px solid var(--border); }
.pg-tbl td.none { color: var(--muted); }
.pg-tbl td.exp { color: var(--muted); }
.pg-tbl .now { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.split-rows { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.split-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 70px 32px; gap: 10px; align-items: center; }
.split-head { font-weight: 700; }
.split-pct { text-align: right; font-variant-numeric: tabular-nums; }
.split-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pg-tbl td.split { color: var(--accent-2); font-weight: 700; }
.pg-split-btn { white-space: nowrap; }
@media (max-width: 640px) { .split-row { grid-template-columns: 1fr 1fr 28px; } .split-row .split-pct { display: none; } .split-head span:nth-child(3) { display: none; } }

/* Aligned Goals (detail Objective) */
.ag-wrap { overflow-x: auto; }
.ag-head, .ag-row { display: grid; grid-template-columns: minmax(260px, 1fr) 44px 190px 120px 130px 110px; gap: 14px; align-items: center; }
.ag-head { padding: 6px 4px 8px; border-bottom: 1px solid var(--border); font-weight: 700; }
.ag-row { padding: 10px 4px; border-bottom: 1px dashed var(--border); list-style: none; cursor: default; }
summary.ag-row { cursor: pointer; }
summary.ag-row::-webkit-details-marker { display: none; }
.ag-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ag-name a { font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-name .chev, .ag-name .chev-sp { flex: none; }
.ag-prog { display: flex; align-items: center; gap: 8px; }
.ag-prog strong { font-size: 13px; min-width: 40px; font-variant-numeric: tabular-nums; }
.ag-prog .pbar, .ag-prog .drill-ini-bar { flex: 1; min-width: 40px; }
.ag-kids { margin-left: 22px; border-left: 2px solid var(--border); padding-left: 10px; }
.ag-kids .ag-row { grid-template-columns: minmax(240px, 1fr) 44px 190px 120px 130px 110px; }
@media (max-width: 860px) { .ag-head { display: none; } .ag-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; } .ag-lead, .ag-upd, .ag-tf { display: none; } .ag-prog { grid-column: 1; } .ag-stage { grid-column: 2; grid-row: 1; } }

/* Kerangka detail: chip di kepala, kartu samping, umpan aktivitas */
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 12.5px; color: var(--muted); }
.chip .ic { width: 14px; height: 14px; }
.chip-xs { padding: 0 8px; font-size: 11px; }
.chip-warn { border-color: transparent; background: color-mix(in srgb, var(--at_risk) 16%, transparent); color: var(--at_risk); }
.col-side { display: flex; flex-direction: column; gap: 14px; }
.col-side > .card { margin-bottom: 0; }
.side-card .card-title { margin-bottom: 10px; }
.side-card .ds-pill { margin-top: 0; max-width: none; }
.side-dl { margin: 0; display: flex; flex-direction: column; }
.side-dl > div { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.side-dl > div:last-child { border-bottom: 0; }
.side-dl dt { flex: none; color: var(--muted); font-size: 13px; }
.side-dl dd { margin: 0; text-align: right; font-weight: 700; font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
.chips + .link-panel { margin-top: 12px; }
.comment-form + .comments { margin-top: 14px; }
.card-title + .comment-form { border-top: 0; padding-top: 0; }
.ag-head, .ag-row, .ag-kids .ag-row { grid-template-columns: minmax(190px, 1fr) 40px 150px 96px 100px; }
.ag-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ag-title a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 860px) { .ag-head { display: none; } .ag-row, .ag-kids .ag-row { grid-template-columns: minmax(0, 1fr) auto; } }
/* Deskripsi dan catatan yang memuat URL panjang tidak boleh keluar dari kartu */
.desc, .tl-note { overflow-wrap: anywhere; }
.side-card .desc { max-width: none; margin-top: 0; }

/* Usulan initiative dari agent (v1.48.0) */
.usulan-card { border: 1px dashed var(--border); border-radius: 12px; padding: 12px 14px; margin-top: 12px; background: var(--surface-2); scroll-margin-top: 80px; }
.usulan-card.usulan-sorot { border-style: solid; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.usulan-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.usulan-title { font-size: 15px; }
.usulan-badge { font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--surface); color: var(--muted); border: 1px solid var(--border); }
.usulan-puci { background: var(--primary-soft); color: var(--primary-strong); border-color: transparent; }
.usulan-kontribusi { margin: 6px 0; font-weight: 600; }
.usulan-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 8px 0; font-size: 13.5px; }
.usulan-dl dt { color: var(--muted); }
.usulan-dl dd { margin: 0; overflow-wrap: anywhere; }
.usulan-aksi { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 10px; }
.usulan-aksi .btn, .usulan-tolak > summary { min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; }
.usulan-tolak > summary { list-style: none; }
.usulan-tolak > summary::-webkit-details-marker { display: none; }
.usulan-tolak .form { margin-top: 8px; min-width: 240px; }
.usulan-riwayat { margin-top: 12px; }
.usulan-banner { background: var(--primary-soft); border-radius: 10px; padding: 8px 12px; margin: 0 0 10px; }
@media (max-width: 600px) { .usulan-dl { grid-template-columns: 1fr; } .usulan-dl dd { margin-bottom: 4px; } }

/* Pohon KR (v1.48.2): satu aliran seperti halaman OKR, ikon dan avatar sejajar baris pertama */
.tree-row { border: 0; border-radius: 10px; background: transparent; margin-bottom: 0; padding: 9px 8px; align-items: start; }
.tree-task { background: transparent; border: 0; border-bottom: 1px dashed var(--border); border-radius: 0; }
.tree-sub { border-bottom: 1px dashed var(--border); }
.tree-ini:hover, .tree-task:hover { background: var(--surface-2); filter: none; }
.tree-task:hover { border-radius: 10px; }
.ini-item { margin-bottom: 0; border-bottom: 1px dashed var(--border); }
.ini-item:last-child { border-bottom: 0; }
.tree-children { margin: 0 0 6px 14px; padding-left: 12px; border-left: 2px solid var(--border); }
.tree-children > .tree-node:last-child > .tree-task, .tree-children > .tree-sub:last-child { border-bottom: 0; }

.tree-ini, .tree-task, .tree-sub { column-gap: 10px; }
.tree-ini { grid-template-columns: 18px 150px minmax(0, 1fr) 34px 78px 150px auto; }
.tree-main { line-height: 24px; }
.tree-main .small { line-height: 1.4; display: block; }
.tree-main .ini-titleline { align-items: flex-start; }
.tree-main .lvl-ic { margin-top: 2px; }
.tree-main .ini-titleline > a { min-width: 0; }
.tree-chev, .tree-ava, .tree-count, .tree-bar, .tree-act { height: 24px; align-items: center; }
.tree-count { display: flex; justify-content: flex-end; }
.tree-bar { display: flex; }
.tree-act { overflow: visible; }

/* Panah drill sama dengan menu samping: › tebal, berputar 90° saat terbuka */
.tree-chev { margin: 0 0 0 -4px; width: 22px; font-size: 18px; font-weight: 900; line-height: 1; transition: transform .15s; }
details[open] > summary .tree-chev { transform: rotate(90deg); }

/* Bulatan task dan avatar seukuran, 24px */
.tree-ava .avatar, .tree-ava .tdl-noone { width: 24px; height: 24px; font-size: 10px; }
.tree-sub { grid-template-columns: 24px minmax(0, 1fr) 34px 78px 150px; }
.tree-sub > .tdl-ic { box-sizing: border-box; width: 24px; height: 24px; border: 2px solid var(--muted); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; line-height: 1; opacity: .7; }
.tree-sub.tdl-done > .tdl-ic { background: var(--done); border-color: var(--done); color: #fff; opacity: 1; }
.lvl-task { color: var(--primary); }

/* Hipotesis ikut kolom status di dalam kartu initiative */
.ini-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.ini-stat .ini-status { min-height: 24px; display: inline-flex; align-items: center; }
.ini-stat .hip-chip { max-width: 100%; white-space: normal; line-height: 1.35; padding: 2px 9px; border-radius: 10px; }
.ini-stat .hip-chip:not(.hip-chip-mute):not(.hip-chip-warn) { white-space: nowrap; }

@media (max-width: 720px) {
  .tree-ini, .tree-task { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .tree-sub { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .tree-ini > .ini-stat { grid-column: 2; grid-row: 2; }
}
@container (max-width: 640px) {
  .tree-ini { grid-template-columns: 18px auto minmax(0, 1fr) auto; }
  .tree-ini > .ini-stat { grid-area: status; }
}

/* Initiative (v1.48.3): task tertaut memakai pohon yang sama dengan halaman KR */
.tree-flat > .tree-children { margin: 0; padding-left: 0; border-left: 0; }
.tree-main .tdl-actions { display: inline-flex; margin: 0 0 0 8px; vertical-align: middle; gap: 6px; }
.tree-main .tdl-actions form { margin: 0; }

/* Initiative sebagai dasbor proyek (v1.48.4) */
.ds-upd-sm { font-size: 11.5px; margin: 8px 0 0 4px; }
.info-tip { cursor: help; opacity: .7; margin-left: 2px; }
.pm-desc { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); }
.pm-desc-h { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-weight: 700; }
.pm-desc-h .ic { width: 14px; height: 14px; }
.pm-desc .desc { font-size: 13.5px; }
.pm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
.pm-stat { display: flex; flex-direction: column; gap: 2px; padding: 0 14px; border-left: 1px solid var(--border); }
.pm-stat:nth-child(3n+1) { border-left: 0; padding-left: 0; }
.pm-stat-v { display: flex; align-items: center; gap: 8px; font-size: 26px; font-weight: 900; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pm-stat-v .dot { width: 10px; height: 10px; flex: none; }
.pm-stat-l { font-size: 12.5px; color: var(--muted); }
.pm-note { font-size: 11.5px; margin: 12px 0 0; }
.pm-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pm-people li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.pm-people li:last-child { border-bottom: 0; }
.pm-p-name { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.pm-p-n { margin-left: auto; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Initiative v1.48.5: hipotesis + grafik sejajar tiga kartu kanan, riwayat revisi dilipat */
.cols-pm { align-items: stretch; }
.cols-pm > .col-main { display: flex; flex-direction: column; gap: 14px; }
.cols-pm > .col-main > .card { margin-bottom: 0; }
.cols-pm > .col-main > .pg-card { flex: 1 1 auto; }
.col-side-fill > .card { flex: 1 1 auto; }
.cols-pm + .cols { margin-top: 18px; }
.hip-hist-wrap { margin-top: 10px; }
.hip-hist-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: 12.5px; font-weight: 700; color: var(--primary); padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.hip-hist-btn::-webkit-details-marker { display: none; }
.hip-hist-btn::after { content: "›"; font-size: 15px; transition: transform .15s; }
.hip-hist-wrap[open] > .hip-hist-btn::after { transform: rotate(90deg); }
.hip-hist-btn:hover { background: var(--primary-soft); }
.hip-hist-wrap .hip-hist { margin-top: 10px; }

/* Profil v1.48.6: tile keempat dan rekan di initiative */
.pf-stats { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) { .pf-stats { grid-template-columns: repeat(2, 1fr); } }
.pf-mates { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
@media (max-width: 640px) { .pf-mates { grid-template-columns: minmax(0, 1fr); } }
.pf-mates li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.pf-mates li[hidden] { display: none; }
.pf-mate-name { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.pf-mate-n { margin-left: auto; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-mate-more { margin-top: 10px; border: 0; background: none; color: var(--primary); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; padding: 4px 0; }

/* v1.48.7 profil: dua tile utama (kudos diterima, initiative terlibat) disorot, dua lainnya lebih kecil */
.pf-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pf-stats > .pf-hero { padding: 22px 12px; border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
.pf-stats > .pf-hero strong { font-size: 40px; line-height: 1.1; color: var(--primary); }
.pf-stats > .pf-hero span { font-size: 13.5px; font-weight: 700; color: var(--text); margin-top: 2px; }
.pf-stats > .pf-sm { padding: 8px 10px; flex-direction: row; align-items: baseline; justify-content: center; gap: 8px; box-shadow: none; }
.pf-stats > .pf-sm strong { font-size: 17px; }
.pf-stats > .pf-sm span { font-size: 12px; }

/* v1.48.8 bubble anjuran initiative + baris initiative rapi di HP */
.coach { position: relative; display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 16px; padding: 12px 38px 12px 14px; border-radius: 14px; background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border)); animation: coach-in .35s ease both; }
.coach[hidden] { display: none; }
.coach::before { content: ""; position: absolute; top: -7px; left: 28px; width: 12px; height: 12px; background: inherit; border-left: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border)); border-top: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border)); transform: rotate(45deg); }
.coach-ic { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.coach-ic .ic { width: 15px; height: 15px; }
.coach-body { min-width: 0; font-size: 13.5px; line-height: 1.5; }
.coach-body p { margin: 0 0 8px; }
.coach-body p:last-child { margin-bottom: 0; }
.coach-body a { font-weight: 700; color: var(--primary-strong); }
.coach-x { position: absolute; top: 6px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.coach-x:hover { background: color-mix(in srgb, var(--primary) 14%, transparent); }
@keyframes coach-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .coach { animation: none; } }

@container (max-width: 640px) {
  .tree-ini { grid-template-columns: 18px auto minmax(0, 1fr) auto; grid-template-areas: "chev main main ava" ". stat stat stat" ". count bar act"; row-gap: 8px; column-gap: 8px; align-items: center; }
  .tree-ini > .tree-chev { grid-area: chev; align-self: start; }
  .tree-ini > .tree-main { grid-area: main; }
  .tree-ini > .tree-ava { grid-area: ava; align-self: start; }
  .tree-ini > .ini-stat { grid-area: stat; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; }
  .tree-ini > .tree-count { grid-area: count; text-align: left; white-space: nowrap; }
  .tree-ini > .tree-bar { grid-area: bar; }
  .tree-ini > .tree-act { grid-area: act; }
  .ini-stat .hip-chip:not(.hip-chip-mute):not(.hip-chip-warn) { white-space: normal; }
}

/* v1.48.9 kartu Initiative saya di Beranda + halaman daftar */
.stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-group-h { justify-content: space-between; }
.stat-group-link { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.stat-group-link:hover { color: var(--primary); }
.stat-group-n { font-size: 12px; font-weight: 400; color: var(--muted); }
a.stat-link { text-decoration: none; color: inherit; }
a.stat-link:hover .stat-value { color: var(--primary); }
.top-row .stats-4 .stat { padding: 0 6px; }
.top-row .stats-4 .stat:first-child { padding-left: 0; }
.top-row .stats-4 .stat-label { font-size: 11px; line-height: 1.25; white-space: nowrap; }
.top-row .stats-4 .stat-value { font-size: 20px; gap: 5px; }
.top-row .stats-4 .stat-value .dot { width: 8px; height: 8px; flex: none; }
.il-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.il-tab { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; background: var(--surface); }
.il-tab.on { background: var(--primary-soft); color: var(--primary-strong); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.il-list { list-style: none; margin: 0; padding: 0; }
.il-row { display: flex; gap: 14px; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.il-row:last-child { border-bottom: 0; }
.il-main { min-width: 0; }
.il-title { font-weight: 700; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.il-title:hover { color: var(--primary); }
.il-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; width: 150px; }
.il-pct { display: flex; align-items: center; gap: 8px; width: 100%; }
.il-pct .pbar { flex: 1; min-width: 40px; }
@media (max-width: 560px) {
  .il-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .il-side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .il-pct { width: auto; flex: 1; }
}

/* v1.48.10 Kapasitas Tim */
.kp-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 4px 0 10px; }
.kp-sum-i { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.kp-sum-i strong { font-size: 30px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kp-note { margin: 0 0 14px; }
.kp-pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.kp-longgar { background: color-mix(in srgb, var(--done) 15%, transparent); color: var(--done); }
.kp-cukup { background: color-mix(in srgb, var(--on_track) 15%, transparent); color: var(--on_track); }
.kp-penuh { background: color-mix(in srgb, var(--at_risk) 18%, transparent); color: var(--at_risk); }
.kp-head, .kp-row { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)) 90px; gap: 8px; align-items: center; }
.kp-head { font-size: 12px; color: var(--muted); font-weight: 700; padding: 0 0 8px; border-bottom: 1px solid var(--border); }
.kp-head span:not(:first-child) { text-align: center; }
.kp-list { list-style: none; margin: 0; padding: 0; }
.kp-row { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.kp-row:last-child { border-bottom: 0; }
.kp-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; }
.kp-name a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.kp-name a:hover { color: var(--primary); }
.kp-n { text-align: center; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kp-lv { text-align: right; }
.kp-set { margin-top: 16px; }
.kp-set summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--primary); }
.kp-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; font-size: 13.5px; }
.kp-form input { width: 64px; margin: 0 4px; }
@media (max-width: 640px) {
  .kp-sum { gap: 6px; }
  .kp-sum-i { padding: 10px; }
  .kp-head { display: none; }
  .kp-row { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 8px; }
  .kp-name { grid-column: 1 / 4; }
  .kp-lv { grid-column: 4; grid-row: 1; }
  .kp-n { display: flex; flex-direction: column; align-items: center; font-size: 17px; }
  .kp-n::after { content: attr(data-l); font-size: 11px; font-weight: 400; color: var(--muted); }
}

.coach-act { display: flex; flex-wrap: wrap; gap: 8px; }

/* v1.50.0 popover makna status */
.badge[data-st] { cursor: pointer; }
.badge[data-st]:hover, .badge[data-st][aria-expanded] { filter: brightness(.95); box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 22%, transparent); }
.badge[data-st]:focus-visible { outline: 2px solid var(--focus, var(--primary)); outline-offset: 2px; }
.st-pop { position: fixed; z-index: 900; max-width: min(300px, calc(100vw - 24px)); padding: 10px 14px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); font-size: 14px; line-height: 1.45; text-wrap: pretty; }
.st-pop p { margin: 0; }

/* v1.50.1 anjuran status di bawah label status KR */
.coach-st { margin: 12px 0 4px; }
.coach-st::before { left: 34px; }
.coach-st .coach-q { font-style: italic; color: var(--text); }

.kontributor-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.kontributor-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kontributor-list form { margin: 0; }
.kontributor-add { display: flex; gap: 8px; align-items: center; }
.kontributor-add select { flex: 1; min-width: 0; }

/* Fase KR (v1.61.0): Benahi = Sunset Sahara/terakota, Tumbuh = Mediterranean Ocean. Muted, tanpa neon. */
.fase-chip { display: inline-block; font-size: 11px; font-weight: 700; line-height: 1.5; padding: 1px 9px; border-radius: 99px; margin-left: 8px; white-space: nowrap; flex: none; }
.kr-meta .fase-chip { margin-left: 0; }
.fase-benahi { background: var(--fase-benahi-bg); color: var(--fase-benahi-fg); }
.fase-tumbuh { background: var(--fase-tumbuh-bg); color: var(--fase-tumbuh-fg); }
.chips .fase-chip { margin-left: 0; font-size: 12px; padding: 2px 10px; }
.fase-bar { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 5; }
.fase-bar .fase-chip { margin-left: 0; }
.fase-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fase-obj { margin-top: 14px; }
.fase-obj-head { display: flex; gap: 10px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.fase-row { display: grid; grid-template-columns: auto 1fr minmax(150px, 200px); gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.fase-row:last-child { border-bottom: 0; }
.fase-title { min-width: 0; overflow-wrap: anywhere; }
.fase-changed { outline: 2px solid var(--fase-benahi-fg); outline-offset: 1px; }
@media (max-width: 640px) { .fase-row { grid-template-columns: auto 1fr; } .fase-row select { grid-column: 2; } }

/* Gantt (v1.63.0): Objective → KR → initiative. Warna dari token status; isi batang = progres. */
.gt-card { padding: 0; overflow: hidden; }
.gt-scroll { overflow-x: auto; }
.gt-card { --gt-lab: 300px; }
.gt-inner { position: relative; min-width: calc(var(--gt-lab) + var(--gt-wm, 900px)); }
.gt-card[data-skala="w"] .gt-inner { min-width: calc(var(--gt-lab) + var(--gt-ww, 900px)); }
/* Skala waktu: Bulan atau Pekan (ISO). Hanya satu set header dan garis bantu yang tampil. */
.gt-card .gt-sc-w { display: none; }
.gt-card[data-skala="w"] .gt-sc-w { display: flex; }
.gt-card[data-skala="w"] .gt-sc-m { display: none; }
.gt-card[data-skala="w"] .gt-vline.gt-sc-w { display: block; background: color-mix(in srgb, var(--border) 70%, transparent); }
.gt-wk { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; line-height: 1.15; padding-left: 6px; }
.gt-wk b { font-size: 11.5px; } .gt-wk em { font-size: 10px; font-style: normal; font-weight: 500; opacity: .8; }
.gt-skala { flex: none; }
.gt-skala button { padding: 6px 15px; border: 0; border-radius: 99px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.gt-skala button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.gt-skala button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.gt-row { display: grid; grid-template-columns: var(--gt-lab, 300px) 1fr; align-items: center; min-height: 36px; border-bottom: 1px solid var(--border); }
.gt-row:last-child { border-bottom: 0; }
.gt-head { min-height: 34px; background: var(--surface-2); position: sticky; top: 0; z-index: 6; }
.gt-label { position: sticky; left: 0; z-index: 5; /* di atas batang (z 2), garis (z 1), dan penanda saat digeser ke samping */ background: var(--surface); display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px calc(12px + var(--d, 0) * 16px); min-width: 0; border-right: 1px solid var(--border); height: 100%; }
.gt-head .gt-label { background: var(--surface-2); padding-left: 12px; }
.gt-label a { color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 auto; }
.gt-label a:hover { text-decoration: underline; }
.gt-label .fase-chip { margin-left: 2px; }
.gt-label .lvl-ic { flex: none; }
.gt-pct { margin-left: auto; flex: none; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gt-obj .gt-label { font-weight: 700; background: var(--surface-2); }
.gt-obj .gt-track { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.gt-ini .gt-label { font-size: 13px; }
.gt-track { position: relative; height: 100%; min-height: 36px; }
.gt-month { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding-left: 8px; font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; }
.gt-overlay { position: absolute; top: 0; bottom: 0; left: var(--gt-lab, 300px); right: 0; pointer-events: none; z-index: 1; }
.gt-vline { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border); }
.gt-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--off_track); opacity: .75; }
.gt-bar { position: absolute; top: 50%; height: 16px; margin-top: -8px; border-radius: 6px; overflow: hidden; display: block; z-index: 2;
  background: color-mix(in srgb, var(--c, var(--none)) 26%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--none)) 55%, transparent); }
.gt-bar .gt-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c, var(--none)); }
.gt-sum { height: 8px; margin-top: -4px; border-radius: 4px; }
.gt-kr .gt-bar { height: 18px; margin-top: -9px; }
.gt-ini .gt-bar { height: 12px; margin-top: -6px; border-radius: 5px; }
.gt-on_track { --c: var(--on_track); } .gt-at_risk { --c: var(--at_risk); } .gt-off_track { --c: var(--off_track); }
.gt-done { --c: var(--done); } .gt-none, .gt-not_started, .gt-no_target { --c: var(--none); }
.gt-pin { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; transform: rotate(45deg); background: var(--c, var(--none)); border-radius: 2px; z-index: 2; }
.gt-key { display: inline-block; width: 12px; height: 8px; border-radius: 3px; background: var(--c, var(--none)); vertical-align: 0; margin-right: 4px; }
@media (max-width: 640px) { .gt-card { --gt-lab: 200px; } .gt-card:not([data-skala="w"]) .gt-inner { min-width: 900px; } }

/* Kontributor di dalam kartu Orang (v1.64.0): label + tombol + kecil, chip dengan tombol lepas. */
.kontrib-block { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.kontrib-head { display: flex; align-items: center; gap: 8px; position: relative; }
.kontrib-label { color: var(--muted); font-size: 13px; }
.kontrib-add { position: static; }
.kontrib-plus { list-style: none; cursor: pointer; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--primary); font-size: 16px; line-height: 1; font-weight: 700; user-select: none; }
.kontrib-plus::-webkit-details-marker { display: none; }
.kontrib-plus:hover, .kontrib-add[open] > .kontrib-plus { background: var(--primary-soft); border-color: var(--primary); }
.kontrib-plus:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.kontrib-add > .kontributor-add { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 8; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); box-shadow: 0 6px 20px rgba(60, 40, 20, .14); }
.kontrib-chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.kontrib-chips .ds-chip { padding-right: 6px; font-size: 13px; }
.kontrib-chips .ds-chip form { margin: 0; display: inline-flex; }
.kontrib-x button { border: 0; background: transparent; color: var(--muted); font-size: 16px; line-height: 1; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; padding: 0; }
.kontrib-x button:hover { background: var(--surface-2); color: var(--off_track); }
.kontrib-empty { margin: 6px 0 0; }

/* Tim dan sub-tim (v1.72.0) */
.tim-kelola { padding: 0; margin-bottom: 14px; }
.tim-kelola > summary { cursor: pointer; padding: 14px 18px; list-style-position: inside; }
.tim-kelola-body { padding: 0 18px 16px; }
.tim-kelola tr[hidden], #user-table tr[hidden], .tim-banner[hidden] { display: none !important; }
.tim-indent { color: var(--muted); margin-left: 14px; }
.tim-arsip { opacity: .7; }
.tim-banner { margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--border); border-left: 4px solid var(--accent-2); border-radius: 10px; background: var(--surface); }
.user-find { margin-bottom: 8px; }
.tim-chips { display: flex; gap: 8px; margin: 0 0 14px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.tim-chips .chip { flex: 0 0 auto; cursor: pointer; font: inherit; font-size: 12.5px; white-space: nowrap; }
.tim-chips .chip b { font-weight: 700; color: var(--text); }
.tim-chips .chip.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.tim-chips .chip:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Target bulanan KPI (v1.73.0) */
.kpi-base.has-plan { position: relative; }
.kpi-base.has-plan::after { content: ""; position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.kpi-month-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.kpi-month-paste { margin-bottom: 10px; }
.kpi-month-paste textarea { width: 100%; }
.kpi-month-tbl input { width: 100%; min-width: 90px; }
.kpi-month-tbl th[scope="row"] { text-align: left; white-space: nowrap; font-weight: 600; }
.kpi-month-view th[scope="row"] { text-align: left; font-weight: 600; }
#target-bulanan .card-head { flex-wrap: wrap; gap: 8px; }
.kpi-lookahead { margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--border); border-left: 4px solid var(--accent-2); border-radius: 10px; background: var(--surface); }
.kpi-lookahead ul { margin: 6px 0 0; padding-left: 18px; }
.kpi-month-strip { min-width: 880px; }
.kpi-month-strip .kpi-top td { font-size: 14px; padding-top: 12px; }
.kpi-month-strip .kpi-bottom td { padding-bottom: 12px; }
.kpi-month-strip .kpi-note-row td { white-space: normal; font-size: 11px; padding-top: 0; border-bottom: 0; }
.kpi-month-strip td.tl-focus { box-shadow: inset 0 0 0 2px var(--primary); }

/* Detail KPI ala Perdoo (v1.73.2): kepala berchip, grafik + strip di satu kartu, sisi kanan berkartu kecil */
.kpi-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.kpi-chips .chip { margin: 0; color: var(--text); }
.strip-head { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.strip-head .card-title { font-size: 14px; }
.side-card .card-head { margin-bottom: 8px; }
.side-card p { margin: 0 0 6px; }
.side-big { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 10px 0 6px; font-weight: 900; }
.side-big strong { font-size: 22px; overflow-wrap: anywhere; }
.side-big .badge { font-size: 12px; font-weight: 700; }
.last-upd { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.last-upd .tl-note { margin-top: 0; }
.people-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; align-items: center; }
.people-dl dt { color: var(--muted); }
.people-dl dd { margin: 0; text-align: right; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }

/* Progress over time ala Perdoo (v1.74.0): satu kartu besar berisi dua kartu */
.chart-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: flex-end; }
.cmp-pick { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.cmp-pick select { padding: 4px 8px; font-size: 13px; }
.inner-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-top: 12px; background: var(--surface); }
.inner-card .chart-box { margin: 0; }
.inner-card .kpi-scroll { border: 0; border-radius: 0; }
.inner-strip .strip-head { margin-top: 0; padding-top: 0; border-top: 0; }
.chart-ctrl .btn[disabled] { opacity: .4; cursor: default; }

/* Kartu KPI ringkas (v1.75.0), bergaya kartu metrik dengan grafik titik */
.kpi-viewtoggle { margin-left: auto; }
.kpi-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 4px 0 14px; }
.kpi-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.kpi-chips .chip { flex: 0 0 auto; cursor: pointer; font: inherit; font-size: 12.5px; white-space: nowrap; }
.kpi-chips .chip b { font-weight: 700; color: var(--text); }
.kpi-chips .chip.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.kpi-chips .chip:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.kpi-group { margin-bottom: 18px; }
.kpi-group[hidden], .kpi-card[hidden] { display: none !important; }
.kpi-group > summary { cursor: pointer; padding: 6px 2px 10px; list-style-position: inside; }
.kpi-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.kpi-card { display: flex; flex-direction: column; gap: 8px; min-height: 176px; padding: 16px 16px 14px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.kpi-card.is-closed { opacity: .65; }
.kpi-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.kpi-card-head h4 { margin: 2px 0 0; font-size: 15px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kpi-card-head h4 a { color: var(--text); }
.kpi-card-head h4 a:hover { text-decoration: none; color: var(--primary); }
.kpi-card-go { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); color: var(--text); }
.kpi-card-go:hover { text-decoration: none; background: var(--primary-soft); color: var(--primary); }
.kpi-card-go .ic { width: 16px; height: 16px; }
.kpi-card-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 24px; }
.kpi-card-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; }
.kpi-card-val { display: flex; align-items: baseline; gap: 6px; }
.kpi-card-val strong { font-size: 28px; font-weight: 800; letter-spacing: -.5px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-trend { font-weight: 800; font-size: 18px; }
.kpi-trend.pos { color: var(--on_track); }
.kpi-trend.neg { color: var(--off_track); }
.kpi-card-sub { margin-top: 2px; }
.kpi-dots { flex: none; display: block; max-width: 48%; height: auto; }
.kpi-dots .kd-ok { fill: var(--primary); }
.kpi-dots .kd-bad { fill: var(--off_track); }
.kpi-dots .kd-none { fill: var(--border); }
@media (max-width: 520px) { .kpi-cards { grid-template-columns: 1fr; } .kpi-viewtoggle { margin-left: 0; } }

/* Bukti hasil initiative (v1.77.0) */
.bukti-add { margin-left: auto; font-weight: 600; }
.bukti-list { list-style: none; margin: 12px 0 0; padding: 0; }
.bukti-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 2px 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--border); }
.bukti-label { overflow-wrap: anywhere; }
.bukti-meta, .bukti-note { grid-column: 1 / -1; }
.bukti-acts { grid-column: 1 / -1; display: flex; gap: 8px; }
.bukti-acts form { margin: 0; }
@media (min-width: 720px) { .bukti-acts { grid-column: auto; } .bukti-meta, .bukti-note { grid-column: 1 / 2; } }

/* Detail initiative: utamakan progres dan task yang masih terbuka. */
.initiative-progress-note { margin: 10px 0 0; }
.initiative-done-tasks > summary { cursor: pointer; color: var(--muted); padding: 12px 8px; font-size: .875rem; }
.initiative-done-tasks > summary:hover { color: var(--text); }

/* Ringkasan rencana dan bukti pada detail initiative. */
.impact-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.impact-head .card-title { margin-bottom:4px; }
.impact-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:18px 0; }
.impact-column { display:flex; flex-direction:column; align-items:flex-start; gap:8px; padding:18px; border-radius:12px; background:var(--bg); min-width:0; }
.impact-label { color:var(--muted); font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.impact-value { font-size:1.6rem; overflow-wrap:anywhere; }
.impact-weight { color:var(--primary); }
.impact-details > summary { cursor:pointer; font-weight:600; padding:14px 0; }
.impact-detail-content > .card { box-shadow:none; margin:0 0 12px; }
.impact-note { border-top:1px solid var(--border); padding-top:12px; margin-bottom:0; }
@media (max-width:480px) { .impact-column { padding:12px; } .impact-value { font-size:1.2rem; } }

/* Aktivitas initiative memakai seluruh lebar setelah detail dipindah ke kolom samping. */
.initiative-activity { grid-template-columns: minmax(0, 1fr); }

/* Kontributor dan assignee dalam satu daftar orang. */
.people-head { position:relative; display:flex; align-items:center; gap:9px; margin-bottom:10px; }
.people-head .card-title { margin:0; }
.people-contributor { white-space:nowrap; font-size:11px; }
.people-remove { flex:none; }
.pm-people li { flex-wrap:wrap; }

/* Progres initiative punya hierarki lebih kuat daripada progres task. */
.initiative-progress-display { margin: 16px 0 12px; padding: 18px 20px 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.initiative-progress-values { display:flex; justify-content:space-between; align-items:end; gap:16px; margin-bottom:16px; }
.initiative-progress-caption { display:block; color:var(--muted); font-size:12px; margin-bottom:5px; }
.initiative-progress-ratio { display:block; font-size:24px; line-height:1.15; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.initiative-progress-ratio span { color:var(--muted); font-size:.72em; }
.initiative-progress-percent { font-size:32px; line-height:1; font-variant-numeric:tabular-nums; }
.initiative-progress-display .pbar { height:16px; }
.initiative-progress-display .pbar-dot { width:20px; height:20px; margin-top:-10px; left:calc(var(--x) * 1% - var(--x) * .20px); }
.people-contributor { display:inline-flex; align-items:center; gap:2px; padding:1px 4px 1px 8px; border-radius:6px; background:var(--surface-2); color:var(--muted); font-size:11px; font-weight:700; white-space:nowrap; }
.people-contributor .people-remove button { width:17px; height:17px; font-size:14px; }
@media (max-width:480px) { .initiative-progress-display { padding:14px; } .initiative-progress-percent { font-size:26px; } .initiative-progress-ratio { font-size:20px; } }

/* Statistik task pada panel samping: beri ruang untuk angka tiga digit. */
.cols-pm .pm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
.cols-pm .pm-stat { min-width: 0; }
.cols-pm .pm-stat:nth-child(3n+1) { border-left: 1px solid var(--border); padding-left: 14px; }
.cols-pm .pm-stat:nth-child(2n+1) { border-left: 0; padding-left: 0; }
.cols-pm .pm-stat-v { font-size: clamp(20px, 2.4vw, 26px); }

/* Daftar initiative di KR: judul leluasa, status dan progres tersusun di bawahnya. */
.kr-initiative-tree .tree-ini {
  grid-template-columns: 22px minmax(0, 1fr) auto auto;
  grid-template-areas: "chev main ava act" ". stat stat stat" ". count bar bar";
  column-gap: 10px; row-gap: 10px; align-items: start;
}
.kr-initiative-tree .tree-ini > .tree-chev { grid-area: chev; }
.kr-initiative-tree .tree-ini > .tree-main { grid-area: main; min-width: 0; }
.kr-initiative-tree .tree-ini > .tree-ava { grid-area: ava; }
.kr-initiative-tree .tree-ini > .tree-act { grid-area: act; }
.kr-initiative-tree .tree-ini > .ini-stat { grid-area: stat; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; }
.kr-initiative-tree .tree-ini > .tree-count { grid-area: count; justify-content: flex-start; text-align: left; white-space: nowrap; }
.kr-initiative-tree .tree-ini > .tree-bar { grid-area: bar; min-width: 0; }
.kr-initiative-tree .tree-ini .hip-chip { white-space: normal; }
@media (max-width: 480px) {
  .kr-initiative-tree .tree-ini { grid-template-areas: "chev main main ava" ". stat stat stat" ". count bar act"; grid-template-columns: 22px auto minmax(0, 1fr) auto; }
}

/* Progres initiative berdekatan dengan informasi initiative, bukan menempel di ujung kanan. */
@media (min-width: 481px) {
  .kr-initiative-tree .tree-ini { grid-template-areas: "chev main ava act" ". stat stat stat" ". bar bar count"; }
  .kr-initiative-tree .tree-ini > .tree-bar { width: 100%; max-width: 260px; }
  .kr-initiative-tree .tree-ini > .tree-count { justify-content: flex-end; }
}

/* Desktop: progres sejajar judul dan PIC, seperti kolom progress pada Perdoo. */
@media (min-width: 1000px) {
  .kr-initiative-tree .tree-ini {
    grid-template-columns: 22px minmax(0, 1fr) 32px minmax(110px, 150px) auto;
    grid-template-areas: "chev main ava bar act" ". stat stat stat count";
    align-items: start;
  }
  .kr-initiative-tree .tree-ini > .tree-bar { width: 100%; max-width: none; }
  .kr-initiative-tree .tree-ini > .tree-bar .pbar { order: -1; }
  .kr-initiative-tree .tree-ini > .tree-count { justify-content: flex-end; }
}

/* Ikon Todoist hanya pada task induk tertaut; ikon subtask tetap mengikuti statusnya. */
.todoist-task-logo { display:inline-block; flex:none; width:20px; height:20px; border-radius:5px; margin-top:2px; }


/* Profil: modern SaaS dengan glassmorphism halus (v1.77.12). */
.pf-glass { max-width: 1000px; gap: 16px; isolation: isolate; }
.pf-glass > .pf-hero {
  position: relative; overflow: hidden; text-align: left; align-items: center;
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 22px; row-gap: 5px;
  padding: 28px 32px; border: 1px solid var(--border); border-radius: 22px;
  background: radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 54%),
    radial-gradient(ellipse at 0% 100%, color-mix(in srgb, var(--sahara) 17%, transparent), transparent 58%), var(--surface);
  box-shadow: var(--shadow);
}
.pf-glass > .pf-hero .pf-ava { grid-row: 1 / span 3; margin: 0; }
.pf-glass > .pf-hero .pf-name { align-self: end; }
.pf-glass > .pf-hero .pf-role { justify-self: start; }
.pf-glass > .pf-hero .pf-user { align-self: start; }
.pf-glass .pf-amal, .pf-glass .pf-sec, .pf-glass .pf-stats > div { border-radius: 20px; }
.pf-glass .pf-amal { padding: 22px 26px; gap: 14px; }
.pf-glass .pf-sec { padding: 22px 24px; }
.pf-glass .pf-sec-h { margin-bottom: 12px; }
.pf-glass .pf-sec-h h3 { font-size: 18px; }
.pf-glass .pf-stats > .pf-hero { padding: 18px 12px; }
.pf-glass .pf-stats > .pf-hero strong { font-size: 32px; }
.pf-glass .pf-skill { background: var(--surface-2); border-color: var(--border); }
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .pf-glass > .pf-hero {
    background: radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 54%),
      radial-gradient(ellipse at 0% 100%, color-mix(in srgb, var(--sahara) 17%, transparent), transparent 58%),
      color-mix(in srgb, var(--surface) 94%, transparent);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .pf-glass > .pf-hero { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (max-width: 640px) {
  .pf-glass { gap: 12px; }
  .pf-glass > .pf-hero { grid-template-columns: auto minmax(0, 1fr); padding: 20px; column-gap: 16px; }
  .pf-glass > .pf-hero .pf-name { font-size: 23px; }
  .pf-glass > .pf-hero .avatar.pf { width: 78px; height: 78px; font-size: 26px; }
  .pf-glass .pf-amal, .pf-glass .pf-sec { padding: 18px; }
  .pf-glass .pf-amal-sub { flex-wrap: wrap; }
  .pf-glass .pf-sec-h { flex-wrap: wrap; }
  .pf-glass .pf-stats > .pf-hero strong { font-size: 28px; }
}

/* Konfeti (v1.82.0): bila pengguna memilih kurangi gerakan, perayaan jadi penekanan diam pada pesan sukses, tanpa gerakan */
.flash-success.pesta-tenang { box-shadow: 0 0 0 2px var(--primary); font-weight: 700; }

/* Apresiasi bukti tersimpan (v1.82.5): pop-up dengan centang menggambar diri */
.bk-check { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bk-check circle, .bk-check path { stroke-dasharray: 1; stroke-dashoffset: 0; }
dialog.bk-pop { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; overflow: visible; color: var(--text); }
dialog.bk-pop::backdrop { background: color-mix(in srgb, #0b1620 45%, transparent); }
.bk-card { position: relative; width: min(320px, calc(100vw - 32px)); padding: 34px 28px 28px; text-align: center; background: var(--surface); border-radius: 16px; box-shadow: 0 24px 60px rgba(11, 22, 32, .3); }
.bk-card h3 { margin: 12px 0 0; font-size: 19px; }
.bk-badge { position: relative; width: 76px; height: 76px; margin: 0 auto; }
.bk-card .bk-check { display: block; width: 76px; height: 76px; margin: 0 auto; color: var(--on_track); stroke-width: 1.6; }
.bk-check.bk-warn { color: var(--conf-amber, #D9A23A); }
.bk-check.bk-flat { color: var(--accent-2); }
.flash .bk-check { width: 20px; height: 20px; margin-right: 8px; vertical-align: -4px; display: inline-block; }
.bk-star { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); fill: none; stroke: var(--primary); stroke-width: .6; pointer-events: none; opacity: 0; }
.bk-x { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
@media (prefers-reduced-motion: no-preference) {
  .bk-check:not(.bk-calm) circle { animation: bk-draw .5s .12s ease-out both; }
  .bk-check:not(.bk-calm) path { animation: bk-draw .4s .6s ease-out both; }
  .bk-check:not(.bk-calm) path + path { animation-delay: 1s; }
  .bk-star { animation: bk-bloom 1.5s .55s ease-out 1 both; }
  dialog.bk-pop::backdrop { animation: bk-fade .2s ease-out both; }
  .bk-card { animation: bk-pop .38s cubic-bezier(.2, 1.3, .4, 1) both; }
  dialog.bk-pop.bk-out, dialog.bk-pop.bk-out::backdrop { animation: bk-fade .2s ease-in reverse both; }
}
@keyframes bk-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes bk-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bk-pop { from { opacity: 0; transform: translateY(14px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes bk-bloom { 0% { opacity: 0; transform: scale(.4) rotate(-30deg); } 35% { opacity: .9; } 100% { opacity: 0; transform: scale(1.5) rotate(22deg); } }

/* ---------- Desa Fulkrum di halaman KR (v2.5.0) ---------- */
.fk-kr-tombol-baris { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 12px; }
.dlg.fk-kr-dlg { width: min(1100px, calc(100vw - 16px)); background: #1B2433; color: #F6EBDD; }
.dlg.fk-kr-dlg .dlg-head { background: #1B2433; border-color: #34425A; }
.dlg.fk-kr-dlg .dlg-head h3 { color: #F6EBDD; }
.dlg.fk-kr-dlg .btn-icon { color: #F6EBDD; }
#fulkrum-kr { padding: 10px; }
#fulkrum-kr > .muted { padding: 20px; color: #B9AD9E; }

/* ---------- Kapasitas Tim: porsi KR vs BAU ---------- */
.kp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0 0 16px; }
.kp-sprints { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); }
.kp-sp { padding: 5px 14px; border-radius: 99px; font-size: 13px; color: var(--muted); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.kp-sp:hover { color: var(--text); }
.kp-sp.on { background: var(--primary-soft); color: var(--primary-strong); font-weight: 700; }
.kp-sp:focus-visible, .kp-pc:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.kp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.kp-pc { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: 14px; background: var(--surface); color: inherit; text-decoration: none; }
.kp-pc:hover { background: var(--surface-2); }
.kp-pc-top { display: flex; align-items: center; gap: 12px; }
.kp-pc-id { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.kp-pc-id strong { font-size: 17px; overflow-wrap: anywhere; }
.kp-pc-n { text-align: right; display: flex; flex-direction: column; flex: none; }
.kp-pc-n b { font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.kp-pc-leg { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-variant-numeric: tabular-nums; }
.kp-sig { align-self: flex-start; padding: 3px 11px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface-2); font-size: 12.5px; }
.kp-pc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); text-align: center; }
.kp-pc-stats strong { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.kp-pc-stats span { font-size: 11.5px; color: var(--muted); }
.kp-bar-wrap { position: relative; padding-top: 6px; }
.kp-ideal { position: absolute; top: 0; bottom: -4px; border-left: 2px dashed var(--text); z-index: 1; }
.kp-seg { display: flex; height: 18px; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.kp-lg .kp-seg { height: 28px; }
.kp-s { display: block; height: 100%; }
.kp-s-kr { background: var(--primary); }
.kp-s-bau { background: var(--done); }
.kp-s-lain { background: var(--none); opacity: .55; }
.kp-s-nm { background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 4px, var(--border) 4px, var(--border) 6px); }
.kp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.kp-grid > .kp-wide { grid-column: span 2; }
.kp-card { margin: 0; }
.kp-h { margin: 0 0 14px; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kp-no { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-strong); font-size: 12px; font-weight: 800; }
.kp-who { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.kp-name-lg { margin: 0; font-size: 24px; line-height: 1.1; }
.kp-lead { margin: 0 0 14px; line-height: 1.55; }
.kp-dl { margin: 0; display: grid; gap: 0; }
.kp-dl > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.kp-dl dt { color: var(--muted); } .kp-dl dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.kp-ideal-lbl { font-size: 12px; margin-top: 4px; white-space: nowrap; transform: translateX(-50%); width: max-content; }
.kp-nm { margin: 8px 0 0; }
.kp-legend { list-style: none; margin: 12px 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: 13px; }
.kp-legend li { display: flex; align-items: center; gap: 8px; }
.kp-sw { width: 12px; height: 12px; border-radius: 3px; flex: none; border: 1px solid var(--border); }
.kp-tbl { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 14px; }
.kp-tbl td { padding: 7px 0; border-top: 1px solid var(--border); }
.kp-tbl td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.kp-tbl td:first-child { color: var(--muted); }
.kp-cap { margin-bottom: 6px; }
.kp-days { position: relative; display: flex; gap: 12px; align-items: flex-end; height: 96px; border-bottom: 1px solid var(--border); }
.kp-8 { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--muted); }
.kp-day { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; position: relative; }
.kp-db { width: 100%; background: var(--primary); opacity: .85; border-radius: 3px 3px 0 0; min-height: 0; }
.kp-dv { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.kp-dlb { position: absolute; top: 100%; margin-top: 4px; font-size: 11px; color: var(--muted); }
.kp-day { margin-bottom: 0; }
.kp-days + .kp-set { margin-top: 32px; }
.kp-seg-ini { height: 14px; margin-bottom: 14px; }
.kp-i { display: block; height: 100%; }
.kp-i-todo { background: var(--none); } .kp-i-doing { background: var(--primary); } .kp-i-blocked { background: var(--at_risk); } .kp-i-done { background: var(--done); }
.kp-stats4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; text-align: center; }
.kp-stats4 strong { display: block; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kp-stats4 span { font-size: 12px; color: var(--muted); }
.kp-beh { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.kp-hbar { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 8px; }
.kp-hbar > span { width: 110px; flex: none; overflow-wrap: anywhere; line-height: 1.25; }
.kp-hbar b { width: 24px; text-align: right; font-variant-numeric: tabular-nums; }
.kp-track { flex: 1; height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.kp-track > div { height: 100%; background: var(--primary); }
.kp-big { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.kp-hours { display: flex; gap: 3px; align-items: flex-end; height: 44px; border-bottom: 1px solid var(--border); }
.kp-hours > span { flex: 1; background: var(--primary); opacity: .85; }
.kp-hours-ax { display: flex; justify-content: space-between; margin-top: 3px; font-variant-numeric: tabular-nums; }
.kp-p { margin: 0; line-height: 1.75; font-size: 13.5px; }
@media (max-width: 1000px) {
  .kp-cards, .kp-grid, .kp-beh { grid-template-columns: 1fr 1fr; }
  .kp-grid > .kp-wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .kp-cards, .kp-grid, .kp-beh, .kp-legend { grid-template-columns: 1fr; }
  .kp-grid > .kp-wide { grid-column: auto; }
}
.kp-radar { display: block; width: 100%; max-height: 250px; }
.kp-traits { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 8px; }
.kp-trh { display: flex; justify-content: space-between; gap: 6px; font-size: 12.5px; }
.kp-trh span { white-space: nowrap; color: var(--muted); }
.kp-weeks { display: flex; gap: 10px; align-items: flex-end; height: 64px; }
.kp-weeks > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 3px; }
.kp-wb { display: block; background: var(--done); border-radius: 3px 3px 0 0; min-height: 2px; }
.kp-weeks > div:last-child .kp-wb { background: var(--primary); }
.kp-wl { font-size: 11px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .kp-traits { grid-template-columns: 1fr; } }
.kp-dlb { white-space: nowrap; }
/* susunan wireframe: tiga panel sebaris */
.kp-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; align-items: stretch; }
.kp-row > .kp-card { display: flex; flex-direction: column; min-width: 0; }
.kp-meters { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.kp-mrow { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 13.5px; }
.kp-mrow b { font-variant-numeric: tabular-nums; }
.kp-mini { height: 4px; background: var(--surface-2); border-radius: 2px; margin-top: 5px; overflow: hidden; }
.kp-mini > div { height: 4px; background: var(--primary); }
.kp-line { display: block; width: 100%; flex: 1; min-height: 0; }
.kp-row .kp-hbar > span { width: 96px; }
.kp-row .kp-set { margin-top: auto; padding-top: 16px; }
@media (max-width: 1000px) { .kp-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .kp-row { grid-template-columns: 1fr; } }
/* Profil: wadah lebih sempit dari halaman Kapasitas Tim, jadi dua kolom (v2.45.0) */
.pf-kap .kp-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf-kap .kp-row:last-of-type { margin-bottom: 8px; }
@media (max-width: 640px) { .pf-kap .kp-row { grid-template-columns: 1fr; } }
.kp-step { display: inline-flex; align-items: center; gap: 6px; padding: 3px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); }
.kp-step strong { min-width: 120px; text-align: center; font-size: 13.5px; }
.kp-st { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--text); text-decoration: none; }
a.kp-st:hover { background: var(--primary-soft); color: var(--primary-strong); }
a.kp-st:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.kp-st.off { color: var(--none); opacity: .5; }
.kp-days-rapat { gap: 2px; }

/* Arsip initiative di KR: initiative yang sudah ditutup terlipat di bawah daftar aktif. */
.ini-arsip { margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 10px; }
.ini-arsip > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted, #6b7280); list-style: none; padding: 4px 0; }
.ini-arsip > summary::-webkit-details-marker { display: none; }
.ini-arsip > summary::before { content: '›'; display: inline-block; width: 16px; transition: transform .15s; }
.ini-arsip[open] > summary::before { transform: rotate(90deg); }
.ini-arsip .ini-item { opacity: .78; }
