/* Proyek - papan kerja internal holding.
   Gaya mengikuti shell Diex (services/diex/web/app.css): header putih
   ber-blur, sidebar kartu dengan grup menu yang bisa diciutkan, konten di
   kanan. Token warnanya SAMA dengan --diex-* supaya dua modul ini terasa
   satu aplikasi; nama --py-* dipertahankan sebagai alias. */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
:root {
  --py-primary: #0d6b52;
  --py-primary-dark: #0a5542;
  --py-primary-light: #e8f5f0;
  --py-surface: #ffffff;
  --py-bg: #f4f6f8;
  --py-muted: #64748b;
  --py-text: #0f172a;
  --py-border: #e2e8f0;
  --py-radius: 0.875rem;
  --py-radius-lg: 1.125rem;
  --py-shadow: 0 1px 2px rgb(15 23 42 / 5%), 0 1px 3px rgb(15 23 42 / 4%);
  --py-shadow-md: 0 4px 12px rgb(15 23 42 / 6%);
  --py-safe-top: env(safe-area-inset-top, 0px);
  --py-header-h: calc(3.75rem + var(--py-safe-top));
  --py-sidebar-w: 15.5rem;
  /* alias lama */
  --py-green: var(--py-primary);
  --py-card: var(--py-surface);
}
html, body { max-width: 100%; overflow-x: hidden; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--py-bg); color: var(--py-text); min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font-family: inherit; }
.hidden { display: none !important; }
.mr-2 { margin-right: 0.5rem; }

/* ── Header ── */
.py-header {
  position: sticky; top: 0; z-index: 30;
  height: var(--py-header-h); padding-top: var(--py-safe-top);
  background: rgb(255 255 255 / 92%); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--py-border);
}
.py-header-inner {
  height: 100%; padding: 0 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
@media (min-width: 768px) { .py-header-inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .py-header-inner { padding: 0 2rem; } }
.py-header-left { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.py-logo {
  width: 2.25rem; height: 2.25rem; border-radius: 0.625rem; flex-shrink: 0;
  background: var(--py-primary); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; text-decoration: none;
}
.py-brand { min-width: 0; position: relative; }
.py-brand h1 { font-size: 0.875rem; font-weight: 700; color: #111827; line-height: 1.2; }
.py-ws-badge {
  display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.125rem;
  font-size: 0.6875rem; font-weight: 500; color: var(--py-primary); background: var(--py-primary-light);
  padding: 0.125rem 0.5rem; border-radius: 9999px; max-width: 14rem; border: none; cursor: pointer;
}
.py-ws-badge .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.py-ws-badge i { font-size: 0.55rem; opacity: 0.6; }
.py-ws-menu {
  position: absolute; left: 0; top: calc(100% + 0.35rem); width: 16rem; max-height: 60vh; overflow-y: auto;
  background: #fff; border: 1px solid #f1f5f9; border-radius: 0.75rem; box-shadow: 0 10px 30px rgb(15 23 42 / 14%);
  padding: 0.375rem 0; z-index: 40;
}
.py-ws-menu-empty { padding: 0.75rem 0.875rem; font-size: 0.8rem; color: var(--py-muted); }
.py-ws-menu-item {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.875rem;
  font-size: 0.8125rem; color: #334155; text-decoration: none;
}
.py-ws-menu-item:hover { background: #f8fafc; }
.py-ws-menu-item.active { background: var(--py-primary-light); color: var(--py-primary); font-weight: 600; }
.py-ws-menu-item i { color: #94a3b8; font-size: 0.75rem; width: 1rem; text-align: center; }
.py-ws-menu-item.active i { color: var(--py-primary); }
.py-ws-menu-item .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.py-ws-menu-sep { height: 1px; background: #f1f5f9; margin: 0.25rem 0; }

.py-nav-toggle {
  width: 2.25rem; height: 2.25rem; border-radius: 0.5rem; border: 1px solid var(--py-border);
  background: #fff; color: #475569; display: none; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}
.py-user-chip { display: flex; align-items: center; gap: 0.625rem; flex-shrink: 0; }
.py-user-name { font-size: 0.875rem; font-weight: 500; color: #1f2937; text-align: right; line-height: 1.2; }
.py-user-role { font-size: 0.6875rem; color: var(--py-muted); text-align: right; }
.py-avatar {
  width: 2.25rem; height: 2.25rem; border-radius: 0.625rem; background: var(--py-primary-light); color: var(--py-primary);
  font-size: 0.8125rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ── Shell ── */
.py-shell { display: flex; width: 100%; min-height: calc(100dvh - var(--py-header-h)); }
.py-sidebar { width: var(--py-sidebar-w); flex-shrink: 0; }
.py-nav {
  background: var(--py-surface); border: 1px solid var(--py-border); border-radius: var(--py-radius-lg);
  box-shadow: var(--py-shadow); padding: 0.5rem; font-size: 0.875rem; height: 100%; overflow-y: auto;
}
.py-main { flex: 1; min-width: 0; padding: 1.25rem 1rem 2rem; }
@media (min-width: 768px) {
  .py-main { padding: 1.5rem 1.5rem 2.5rem; }
  .py-sidebar {
    position: sticky; top: calc(var(--py-header-h) + 0.5rem); align-self: flex-start;
    max-height: calc(100dvh - var(--py-header-h) - 1rem); padding: 0 0 0 1rem;
  }
  .py-nav { max-height: calc(100dvh - var(--py-header-h) - 1.5rem); }
}
@media (min-width: 1024px) { .py-main { padding: 1.75rem 2rem 3rem; } }
@media (min-width: 1280px) { .py-main { padding: 1.75rem 2.5rem 3rem; } }

/* Halaman "penuh" (board & chat): konten mengisi sisa tinggi layar supaya
   list kanban / percakapan menggulir DI DALAM, bukan seluruh halaman. */
@media (min-width: 768px) {
  body.py-fill .py-main {
    height: calc(100dvh - var(--py-header-h)); display: flex; flex-direction: column;
    padding-bottom: 1rem;
  }
  body.py-fill .py-page-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
}

/* ── Navigasi (sama persis .nav-* Diex) ── */
.nav-group-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #94a3b8; padding: 0.625rem 0.75rem 0.25rem; margin-top: 0.125rem; user-select: none;
}
.nav-group-label button {
  background: none; border: none; color: #cbd5e1; cursor: pointer; padding: 0.125rem 0.25rem;
  font-size: 0.625rem; line-height: 1; border-radius: 0.25rem;
}
.nav-group-label button:hover { color: #94a3b8; }
.nav-group-items { display: flex; flex-direction: column; gap: 0.125rem; }
.nav-group-items.collapsed { display: none; }
.nav-btn {
  display: flex; align-items: center; gap: 0.625rem; width: 100%; text-align: left;
  padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-size: 0.8125rem; color: #475569;
  text-decoration: none; border: none; background: transparent; cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.nav-btn:hover { background: #f1f5f9; color: #1e293b; }
.nav-btn.active { background: var(--py-primary); color: #fff; font-weight: 500; box-shadow: 0 1px 3px rgb(13 107 82 / 25%); }
.nav-btn .nav-icon { width: 1.125rem; text-align: center; opacity: 0.85; flex-shrink: 0; }
.nav-btn.active .nav-icon { opacity: 1; }
.nav-btn .nav-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-btn .nav-dot { width: 0.625rem; height: 0.625rem; border-radius: 0.2rem; display: inline-block; }
.nav-btn.active .nav-dot { box-shadow: 0 0 0 2px #fff; }
.nav-btn .nav-count { margin-left: auto; font-size: 0.6875rem; color: #94a3b8; }
.nav-btn.active .nav-count { color: rgb(255 255 255 / 80%); }
.nav-btn.nav-add { color: #94a3b8; }
.nav-btn.nav-add:hover { color: var(--py-primary); background: var(--py-primary-light); }
.nav-btn.nav-danger { color: #dc2626; }
.nav-empty { padding: 0.375rem 0.75rem; font-size: 0.75rem; color: #94a3b8; }

.py-nav-backdrop { position: fixed; inset: 0; z-index: 40; background: rgb(15 23 42 / 45%); backdrop-filter: blur(2px); }

@media (max-width: 767px) {
  .py-nav-toggle { display: inline-flex; }
  .py-user-text { display: none; }
  .py-sidebar {
    position: fixed; top: 0; left: 0; z-index: 50; height: 100dvh;
    transform: translateX(-100%); transition: transform 0.2s ease;
    padding: calc(1rem + var(--py-safe-top)) 1rem 1rem; background: var(--py-bg);
  }
  .py-sidebar.open { transform: translateX(0); }
  .py-ws-badge { max-width: 10rem; }
}

/* ── Judul halaman ── */
.py-page-header {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 0.75rem 1.5rem; margin-bottom: 1.25rem;
}
.py-page-header > div:first-child { min-width: 0; }
.py-crumb { font-size: 0.75rem; color: var(--py-muted); margin-bottom: 0.25rem; display: flex; gap: 0.375rem; align-items: center; flex-wrap: wrap; }
.py-crumb a { color: var(--py-muted); text-decoration: none; }
.py-crumb a:hover { color: var(--py-primary); }
.py-page-title { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; overflow-wrap: anywhere; }
.py-page-subtitle { font-size: 0.8125rem; color: var(--py-muted); margin-top: 0.25rem; }
.py-page-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
@media (max-width: 767px) { .py-page-title { font-size: 1.125rem; } }

.py-section-title {
  font-size: 0.6875rem; font-weight: 700; color: #94a3b8; text-transform: uppercase;
  letter-spacing: 0.08em; margin: 1.5rem 0 0.75rem;
}

/* ── Kartu & tombol ── */
.py-card {
  background: var(--py-surface); border: 1px solid var(--py-border); border-radius: var(--py-radius-lg);
  box-shadow: var(--py-shadow);
}
.py-card-pad { padding: 1.25rem; }
.py-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.875rem; }
.py-tile {
  display: flex; flex-direction: column; gap: 0.375rem; padding: 1rem 1.125rem; text-decoration: none; color: inherit;
  background: var(--py-surface); border: 1px solid var(--py-border); border-radius: var(--py-radius-lg);
  box-shadow: var(--py-shadow); transition: box-shadow 0.15s, border-color 0.15s;
}
.py-tile:hover { box-shadow: var(--py-shadow-md); border-color: #cbd5e1; }
.py-tile-head { display: flex; align-items: center; gap: 0.625rem; min-width: 0; }
.py-tile-icon {
  width: 2.25rem; height: 2.25rem; border-radius: 0.625rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--py-primary-light); color: var(--py-primary); font-size: 0.875rem;
}
.py-tile h3 { font-size: 0.9375rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.py-tile p { font-size: 0.8125rem; color: var(--py-muted); }
.py-tile-new {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 5.5rem;
  border: 2px dashed var(--py-border); border-radius: var(--py-radius-lg); background: transparent;
  color: var(--py-muted); font-size: 0.8125rem; cursor: pointer;
}
.py-tile-new:hover { color: var(--py-primary); border-color: var(--py-primary); background: var(--py-primary-light); }

.py-chip {
  display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.6875rem; font-weight: 500;
  border-radius: 9999px; padding: 0.125rem 0.5rem; background: #f1f5f9; color: #475569; width: fit-content;
}
.py-chip-green { background: var(--py-primary-light); color: var(--py-primary); }
.py-chip-amber { background: #fffbeb; color: #b45309; }

.py-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  background: var(--py-primary); color: #fff; border: none; border-radius: 0.5rem;
  padding: 0.4375rem 1rem; font-size: 0.8125rem; font-weight: 500; cursor: pointer; text-decoration: none;
  transition: background 0.15s;
}
.py-btn:hover { background: var(--py-primary-dark); }
.py-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.py-btn-ghost { background: #fff; color: #334155; border: 1px solid var(--py-border); }
.py-btn-ghost:hover { background: #f8fafc; border-color: #cbd5e1; }
.py-btn-danger { background: #fff; color: #b91c1c; border: 1px solid #fca5a5; }
.py-btn-danger:hover { background: #fef2f2; border-color: #ef4444; }
.py-btn-sm { padding: 0.3rem 0.6rem; font-size: 0.75rem; }

/* Sakelar tampilan Board | Chat */
.py-seg { display: inline-flex; background: #eef2f6; border-radius: 0.625rem; padding: 0.1875rem; gap: 0.125rem; }
.py-seg a {
  display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 0.75rem; border-radius: 0.5rem;
  font-size: 0.8125rem; color: #475569; text-decoration: none; font-weight: 500;
}
.py-seg a:hover { color: #0f172a; }
.py-seg a.active { background: #fff; color: var(--py-primary); box-shadow: var(--py-shadow); }

/* ── Form ── */
.py-input, .py-textarea, .py-select {
  width: 100%; border: 1px solid var(--py-border); border-radius: 0.5rem; padding: 0.4375rem 0.75rem;
  font-size: 0.8125rem; background: #fff; color: var(--py-text); transition: border-color 0.12s, box-shadow 0.12s;
}
.py-input:focus, .py-textarea:focus, .py-select:focus {
  outline: none; border-color: var(--py-primary); box-shadow: 0 0 0 3px rgb(13 107 82 / 12%);
}
.py-textarea { min-height: 72px; resize: vertical; }
.py-input[type="color"] { padding: 0.2rem; height: 2.25rem; }
.py-label { display: block; font-size: 0.75rem; font-weight: 500; color: #475569; margin: 0.875rem 0 0.3rem; }
.py-row { display: flex; gap: 0.625rem; align-items: center; flex-wrap: wrap; }
.py-row > .grow { flex: 1; min-width: 0; }
@media (max-width: 767px) {
  .py-input, .py-textarea, .py-select { font-size: 16px; }
}

/* ── Modal ── */
.py-modal-backdrop { position: fixed; inset: 0; background: rgb(15 23 42 / 45%); backdrop-filter: blur(2px); z-index: 60; }
.py-modal {
  position: fixed; z-index: 70; left: 50%; top: 6%; transform: translateX(-50%);
  width: min(620px, calc(100vw - 2rem)); max-height: min(86vh, 86dvh); overflow-y: auto;
  background: #fff; border-radius: var(--py-radius-lg); box-shadow: 0 20px 50px rgb(15 23 42 / 25%);
}
.py-modal-sm { width: min(420px, calc(100vw - 2rem)); top: 12%; }
.py-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--py-border); position: sticky; top: 0; background: #fff; z-index: 1;
}
.py-modal-head h3 { font-size: 0.9375rem; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.py-modal-close { border: none; background: none; color: #94a3b8; font-size: 1.1rem; cursor: pointer; width: 2rem; height: 2rem; border-radius: 0.5rem; flex-shrink: 0; }
.py-modal-close:hover { background: #f1f5f9; color: #475569; }
.py-modal-body { padding: 0.25rem 1.25rem 1rem; }
.py-modal-actions {
  display: flex; justify-content: flex-end; gap: 0.5rem; padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--py-border); background: #f8fafc; flex-wrap: wrap;
}
.py-modal-actions .spacer { flex: 1; }

/* Pilihan daftar dalam modal (pindah list / pilih list) */
.py-pick { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.5rem 0; }
.py-pick button {
  display: flex; align-items: center; gap: 0.625rem; width: 100%; text-align: left; border: none;
  background: transparent; color: #1e293b; padding: 0.7rem 0.75rem; border-radius: 0.5rem;
  font-size: 0.875rem; cursor: pointer; min-height: 2.75rem;
}
.py-pick button:hover:not(:disabled) { background: #f1f5f9; }
.py-pick button:disabled { background: var(--py-primary-light); color: var(--py-primary); cursor: default; }
.py-pick button i { color: #94a3b8; font-size: 0.8rem; width: 1rem; }
.py-pick button:disabled i { color: var(--py-primary); }

/* ── Toast ── */
.py-toast {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 90; max-width: calc(100vw - 2.5rem);
  padding: 0.7rem 1rem; border-radius: 0.75rem; font-size: 0.8125rem; color: #fff;
  box-shadow: 0 10px 30px rgb(15 23 42 / 20%); display: flex; align-items: center; gap: 0.5rem;
}
.py-toast-ok { background: var(--py-primary); }
.py-toast-err { background: #b91c1c; }

.py-loading { text-align: center; color: var(--py-muted); padding: 3rem 0; font-size: 0.875rem; }
.py-boot-error {
  background: #fff; border: 1px solid #fecaca; border-radius: var(--py-radius-lg); padding: 1.25rem 1.5rem;
  margin: 1rem 0; max-width: 560px; color: #991b1b; font-size: 0.875rem;
}
.py-boot-error .sub { color: var(--py-muted); font-size: 0.8125rem; margin-top: 0.5rem; }
.py-empty { text-align: center; color: var(--py-muted); padding: 1.5rem; font-size: 0.8125rem; }

/* ── Kanban ── */
.py-board-scroll { overflow-x: auto; padding-bottom: 0.75rem; flex: 1; min-height: 0; }
.py-board { display: flex; gap: 0.875rem; align-items: flex-start; min-height: 60vh; height: 100%; }
.py-list {
  background: #eaeef2; border-radius: var(--py-radius); width: 290px; flex: 0 0 290px;
  padding: 0.625rem; display: flex; flex-direction: column; gap: 0.5rem; max-height: 100%;
}
@media (max-width: 767px) { .py-list { max-height: 75vh; } }
.py-list-head { display: flex; align-items: center; justify-content: space-between; gap: 0.375rem; padding: 0.125rem 0.25rem; }
.py-list-head h4 { font-size: 0.8125rem; font-weight: 700; color: #1e293b; }
.py-list-head .count { font-weight: 500; color: #94a3b8; margin-left: 0.25rem; }
.py-list-head button {
  background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 0.75rem;
  width: 1.75rem; height: 1.75rem; border-radius: 0.375rem;
}
.py-list-head button:hover { background: rgb(15 23 42 / 6%); color: #475569; }
/* Pena ubah ala kepala list: di kotak board/workspace & di judul halaman board. */
.py-pen {
  background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 0.75rem; flex-shrink: 0;
  width: 1.75rem; height: 1.75rem; border-radius: 0.375rem; display: inline-flex; align-items: center; justify-content: center;
}
.py-pen:hover { background: rgb(15 23 42 / 6%); color: #475569; }
.py-tile-head .py-pen { margin-left: auto; }
.py-page-title .py-pen { vertical-align: middle; margin-left: 0.25rem; font-size: 0.8125rem; }
.py-crumb .py-pen { width: 1.375rem; height: 1.375rem; font-size: 0.625rem; }
.py-list-cards { display: flex; flex-direction: column; gap: 0.5rem; overflow-y: auto; min-height: 0; }
.py-kcard {
  background: #fff; border-radius: 0.625rem; border: 1px solid var(--py-border); box-shadow: var(--py-shadow);
  padding: 0.625rem 0.75rem; font-size: 0.8125rem; cursor: pointer; transition: border-color 0.12s;
}
.py-kcard:hover { border-color: var(--py-primary); }
.py-kcard .title { color: #0f172a; overflow-wrap: anywhere; }
.py-kcard .labels { display: flex; gap: 0.25rem; flex-wrap: wrap; margin-bottom: 0.375rem; }
.py-kcard .labels span { width: 2rem; height: 0.375rem; border-radius: 9999px; }
.py-kcard .meta { display: flex; gap: 0.625rem; margin-top: 0.375rem; font-size: 0.6875rem; color: var(--py-muted); flex-wrap: wrap; }
.py-kcard.done { opacity: 0.65; }
.py-kcard.done .title { text-decoration: line-through; }
/* Tenggat kartu (board.js lencanaTenggat): merah = terlambat, oranye = hari
   ini, kuning = 1-2 hari lagi, abu = masih lama, hijau = selesai. Garis kiri
   kartu ikut berwarna supaya terlihat dari jauh, tanpa membaca lencananya. */
.py-tenggat {
  display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.1rem 0.4rem;
  border-radius: 0.375rem; font-size: 0.6875rem; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
/* Kartu yang belum punya penanggung jawab, di papan yang memberlakukan aturan
   "tak boleh pindah list tanpa PJ" (board.js + app/services/aturan_pindah.py).
   Ada supaya aturannya terlihat SEBELUM orang mencoba menyeret, bukan cuma
   sebagai pesan penolakan sesudahnya. */
.py-kunci-pindah {
  display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.1rem 0.4rem;
  border-radius: 0.375rem; background: #fef3c7; color: #a16207; font-weight: 600;
  line-height: 1.4; white-space: nowrap;
}
.py-tenggat-telat { background: #fee2e2; color: #b91c1c; }
.py-tenggat-hariini { background: #ffedd5; color: #c2410c; }
.py-tenggat-segera { background: #fef3c7; color: #a16207; }
.py-tenggat-nanti { background: #f1f5f9; color: #64748b; font-weight: 500; }
.py-tenggat-beres { background: #dcfce7; color: #15803d; font-weight: 500; }
.py-kcard-telat { border-left: 3px solid #dc2626; }
.py-kcard-hariini { border-left: 3px solid #ea580c; }
.py-kcard-segera { border-left: 3px solid #eab308; }
.py-kcard.py-redup { opacity: 0.3; }
.py-tenggat-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 0.75rem; }
.py-tenggat-saring { border: 1px solid transparent; cursor: pointer; font-size: 0.75rem; padding: 0.25rem 0.6rem; }
.py-tenggat-saring.aktif { border-color: currentColor; box-shadow: 0 0 0 2px rgb(255 255 255), 0 0 0 3px currentColor; }
.py-tenggat-reset { background: none; border: none; color: var(--py-muted); font-size: 0.75rem; cursor: pointer; text-decoration: underline; }
/* Bulatan penanggung jawab (foto profil Diex / inisial) -- di pojok kanan
   baris meta kartu, saling menumpuk sedikit seperti Trello. */
.py-kav-row { display: flex; margin-left: auto; }
.py-kav {
  width: 1.5rem; height: 1.5rem; border-radius: 9999px; overflow: hidden; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--py-primary-light, #e0e7ff); color: var(--py-primary, #4f46e5);
  font-size: 0.5625rem; font-weight: 700; border: 2px solid #fff; line-height: 1;
}
.py-kav-row .py-kav + .py-kav { margin-left: -0.375rem; }
.py-kav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.py-kav-lebih { background: #e2e8f0; color: #475569; }
.py-kcard .meta { align-items: center; }
/* Terakhir diperbarui (board.js lencanaDiperbarui) & pemilih urutan kartu di
   kepala board. */
.py-diperbarui { display: inline-flex; align-items: center; gap: 0.25rem; white-space: nowrap; }
.py-urut { display: inline-flex; align-items: center; gap: 0.375rem; color: var(--py-muted); font-size: 0.75rem; }
.py-urut .py-select { width: auto; max-width: 15rem; padding: 0.3rem 0.5rem; font-size: 0.75rem; }
/* Filter aktif: ikon & bingkai berwarna supaya jelas ada kartu yang disembunyikan. */
.py-urut-aktif { color: var(--py-primary); }
.py-urut-aktif .py-select { border-color: var(--py-primary); }
@media (max-width: 767px) { .py-urut .py-select { font-size: 16px; max-width: 100%; } }
.py-member-chip .py-kav { width: 1.25rem; height: 1.25rem; border-width: 1px; }
/* Seret-lepas kartu (pages/_seret-kartu.js). Tahan-lama di HP tak boleh
   memilih teks / memunculkan menu salin, karena itu tanda mulai menyeret. */
.py-kcard { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.py-kcard-asal { display: none; }
.py-kcard-tempat {
  border: 2px dashed #94a3b8; border-radius: 0.625rem; background: rgb(148 163 184 / 12%); flex-shrink: 0;
}
.py-kcard-hantu {
  position: fixed; z-index: 100; pointer-events: none; margin: 0; cursor: grabbing;
  box-shadow: 0 12px 28px rgb(15 23 42 / 25%); border-color: var(--py-primary); opacity: 0.95;
}
body.py-sedang-seret, body.py-sedang-seret * { cursor: grabbing !important; user-select: none; }
.py-add-inline {
  background: none; border: none; color: #64748b; text-align: left; padding: 0.4rem 0.375rem;
  font-size: 0.8125rem; cursor: pointer; border-radius: 0.5rem;
}
.py-add-inline:hover { background: rgb(15 23 42 / 6%); color: #0f172a; }
.py-list-new {
  background: rgb(234 238 242 / 55%); border: 2px dashed #cbd5e1; color: var(--py-muted);
  border-radius: var(--py-radius); width: 290px; flex: 0 0 290px; padding: 0.875rem; cursor: pointer; font-size: 0.8125rem;
}
.py-list-new:hover { color: var(--py-primary); border-color: var(--py-primary); }

.py-checklist-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0; font-size: 0.8125rem; }
.py-checklist-item input[type="checkbox"] { accent-color: var(--py-primary); width: 1rem; height: 1rem; }
.py-checklist-item.checked span { text-decoration: line-through; color: var(--py-muted); }
.py-checklist { margin-bottom: 0.75rem; }
.py-checklist-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.25rem; }
.py-checklist-actions, .py-checklist-item-actions { display: inline-flex; align-items: center; gap: 0.125rem; flex: 0 0 auto; }
.py-checklist-item-actions .py-add-inline, .py-checklist-actions [data-cl-edit], .py-checklist-actions [data-cl-del] { padding: 0.25rem 0.4rem; font-size: 0.75rem; }
.py-checklist-item { justify-content: space-between; }
.py-checklist-check { display: flex; align-items: center; gap: 0.5rem; flex: 1 1 auto; min-width: 0; cursor: pointer; }
.py-checklist-check span { overflow-wrap: anywhere; }
.py-checklist-item.checked .py-checklist-check span { text-decoration: line-through; color: var(--py-muted); }
.py-checklist-item-actions { opacity: 0.35; transition: opacity 0.15s; }
.py-checklist-item:hover .py-checklist-item-actions, .py-checklist-item:focus-within .py-checklist-item-actions { opacity: 1; }
@media (hover: none) { .py-checklist-item-actions { opacity: 1; } }
.py-danger-inline:hover { background: rgb(220 38 38 / 10%); color: #dc2626; }
.py-label-chip {
  display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.6875rem; font-weight: 500; color: #fff;
  border-radius: 9999px; padding: 0.15rem 0.55rem; margin: 0 0.25rem 0.25rem 0;
}
.py-label-chip button, .py-member-chip button { background: none; border: none; color: inherit; opacity: 0.75; cursor: pointer; font-size: 0.7rem; padding: 0; }
.py-member-chip {
  display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; background: #f1f5f9; color: #334155;
  border-radius: 9999px; padding: 0.2rem 0.6rem; margin: 0 0.25rem 0.25rem 0;
}
.py-muted { color: var(--py-muted); font-size: 0.8125rem; }

/* ── Tabel (gaya .diex-card table) ── */
.py-table-wrap { overflow-x: auto; }
.py-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.py-table.wide { min-width: 620px; }
.py-table thead { background: #f8fafc; }
.py-table th {
  text-align: left; padding: 0.75rem 1.25rem; font-weight: 600; font-size: 0.6875rem; color: var(--py-muted);
  text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap;
}
.py-table td { padding: 0.625rem 1.25rem; border-top: 1px solid #f1f5f9; vertical-align: top; }
.py-table.mid td { vertical-align: middle; }
.py-table tbody tr:hover { background: #f8fafc; }
.py-table a { color: #0f172a; text-decoration: none; font-weight: 600; }
.py-table a:hover { color: var(--py-primary); }
.py-card-head {
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--py-border);
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
}
.py-card-head h3 { font-size: 0.875rem; font-weight: 600; }

/* ── Monitor ── */
.pm-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.pm-filters .py-select { width: auto; min-width: 10rem; }
.pm-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.875rem; }
@media (min-width: 640px) { .pm-stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .pm-stats { grid-template-columns: repeat(6, 1fr); } }
.pm-stat { background: #fff; border: 1px solid var(--py-border); border-radius: var(--py-radius-lg); box-shadow: var(--py-shadow); padding: 1rem 1.125rem; }
.pm-stat .l { font-size: 0.75rem; color: var(--py-muted); font-weight: 500; }
.pm-stat .n { font-size: 1.5rem; font-weight: 700; color: var(--py-text); line-height: 1.2; margin-top: 0.25rem; }
.pm-stat .h { font-size: 0.6875rem; color: #94a3b8; }
.pm-stat.done .n { color: #15803d; }
.pm-stat.progress .n { color: #b45309; }
.pm-stat.todo .n { color: #0369a1; }
.pm-stat.overdue .n { color: #b91c1c; }
.pm-badge { display: inline-block; font-size: 0.6875rem; font-weight: 600; border-radius: 9999px; padding: 0.125rem 0.5rem; white-space: nowrap; }
.pm-badge-done { background: #dcfce7; color: #15803d; }
.pm-badge-progress { background: #ffedd5; color: #b45309; }
.pm-badge-todo { background: #e0f2fe; color: #0369a1; }
.pm-badge-other { background: #f1f5f9; color: #64748b; }
.pm-overdue { color: #b91c1c; font-weight: 600; font-size: 0.75rem; }
.pm-bar { height: 6px; background: #eef2f1; border-radius: 9999px; overflow: hidden; min-width: 56px; margin-top: 3px; }
.pm-bar > span { display: block; height: 100%; background: var(--py-primary); }
.pm-muted { color: var(--py-muted); font-size: 0.75rem; }

/* ── Tampilan chat (/chat) — dua panel di dalam kartu ── */
.pych-shell {
  display: grid; grid-template-columns: minmax(260px, 340px) 1fr; overflow: hidden;
  background: var(--py-surface); border: 1px solid var(--py-border); border-radius: var(--py-radius-lg);
  box-shadow: var(--py-shadow); flex: 1; min-height: 0;
}
@media (max-width: 767px) { .pych-shell { height: calc(100dvh - var(--py-header-h) - 9rem); min-height: 420px; } }
.pych-sidebar { position: relative; display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--py-border); }
.pych-fab {
  position: absolute; right: 1rem; bottom: 1rem; width: 3rem; height: 3rem; border-radius: 0.875rem;
  background: var(--py-primary); color: #fff; border: none; cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgb(13 107 82 / 30%); z-index: 5;
}
.pych-fab:hover { background: var(--py-primary-dark); }
.pych-search { padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--py-border); flex-shrink: 0; }
.pych-search input {
  width: 100%; background: #f1f5f9; border: 1px solid transparent; border-radius: 0.5rem;
  padding: 0.5rem 0.75rem; font-size: 0.8125rem; outline: none;
}
.pych-search input:focus { background: #fff; border-color: var(--py-primary); box-shadow: 0 0 0 3px rgb(13 107 82 / 12%); }
.pych-cards { flex: 1; overflow-y: auto; min-height: 0; padding-bottom: 4.5rem; }
.pych-tabs { display: flex; gap: 0.375rem; padding: 0.625rem 0.75rem; overflow-x: auto; flex-shrink: 0; border-bottom: 1px solid var(--py-border); scrollbar-width: thin; }
.pych-tab {
  flex: 0 0 auto; border: 1px solid var(--py-border); background: #fff; color: #475569;
  border-radius: 9999px; padding: 0.3rem 0.75rem; font-size: 0.75rem; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.pych-tab:hover { background: #f8fafc; }
.pych-tab.active { border-color: var(--py-primary); background: var(--py-primary); color: #fff; }
.pych-item { display: flex; gap: 0.75rem; padding: 0.7rem 0.875rem; cursor: pointer; border-bottom: 1px solid #f1f5f9; }
.pych-item:hover { background: #f8fafc; }
.pych-item.active { background: var(--py-primary-light); box-shadow: inset 3px 0 0 var(--py-primary); }
.pych-avatar {
  width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; background: #94a3b8; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.pych-item.done .pych-avatar { background: #10b981; }
.pych-item-body { flex: 1; min-width: 0; }
.pych-item-top { display: flex; justify-content: space-between; gap: 0.5rem; }
.pych-item-title { font-weight: 600; font-size: 0.8125rem; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pych-item.done .pych-item-title { text-decoration: line-through; color: var(--py-muted); }
.pych-item-time { font-size: 0.6875rem; color: #94a3b8; flex-shrink: 0; }
.pych-item-preview { font-size: 0.75rem; color: var(--py-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pych-item-meta { display: flex; align-items: center; gap: 0.375rem; margin-top: 3px; min-width: 0; }
.pych-item-list { flex-shrink: 0; font-size: 0.625rem; font-weight: 600; color: var(--py-primary); background: var(--py-primary-light); border-radius: 9999px; padding: 1px 7px; }
.pych-item-dates { font-size: 0.625rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.pych-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #f8fafc; }
.pych-head { display: flex; align-items: center; gap: 0.625rem; padding: 0.625rem 1rem; background: #fff; border-bottom: 1px solid var(--py-border); flex-shrink: 0; }
.pych-head-main { flex: 1; min-width: 0; }
.pych-head-title { font-size: 0.9rem; font-weight: 600; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pych-head-sub { font-size: 0.6875rem; color: var(--py-muted); margin-top: 1px; }
.pych-head-label { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 9999px; font-size: 0.625rem; font-weight: 600; color: #fff; vertical-align: middle; }
.pych-head-dates { font-size: 0.65rem; color: #94a3b8; margin-top: 2px; }
.pych-icon-btn { border: 1px solid var(--py-border); background: #fff; color: #475569; width: 2.25rem; height: 2.25rem; border-radius: 0.5rem; cursor: pointer; font-size: 0.85rem; flex-shrink: 0; }
.pych-icon-btn:hover { background: var(--py-primary-light); border-color: var(--py-primary); color: var(--py-primary); }
.pych-menu { position: absolute; top: calc(100% + 0.35rem); right: 0; min-width: 13rem; background: #fff; border: 1px solid #f1f5f9; border-radius: 0.75rem; box-shadow: 0 10px 30px rgb(15 23 42 / 14%); padding: 0.375rem 0; z-index: 20; }
.pych-menu button { display: block; width: 100%; text-align: left; border: none; background: transparent; padding: 0.6rem 0.875rem; font-size: 0.8125rem; cursor: pointer; color: #334155; }
.pych-menu button:hover { background: #f8fafc; }

.pych-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem 6%; }
.pych-day { text-align: center; margin: 0.75rem 0 0.5rem; }
.pych-day span { background: #fff; color: #475569; font-size: 0.6875rem; font-weight: 600; border: 1px solid var(--py-border); border-radius: 9999px; padding: 0.2rem 0.7rem; }
.pych-sys { text-align: center; margin: 0.375rem 0; }
.pych-sys span { background: #eef2f6; color: #64748b; font-size: 0.6875rem; border-radius: 0.5rem; padding: 0.2rem 0.625rem; display: inline-block; max-width: 85%; }
.pych-row { display: flex; margin: 0.3rem 0; max-width: 78%; }
.pych-row.out { margin-left: auto; justify-content: flex-end; }
.pych-bubble { padding: 0.45rem 0.7rem 0.35rem; border-radius: 0.75rem; font-size: 0.8125rem; line-height: 1.45; word-break: break-word; background: #fff; color: #0f172a; border: 1px solid var(--py-border); }
.pych-row.in .pych-bubble { border-top-left-radius: 0.2rem; }
.pych-row.out .pych-bubble { background: var(--py-primary-light); border-color: #cde8dd; border-top-right-radius: 0.2rem; }
.pych-author { font-size: 0.6875rem; font-weight: 700; color: var(--py-primary); margin-bottom: 2px; }
.pych-meta { font-size: 0.625rem; color: #94a3b8; margin-top: 3px; text-align: right; }

.pych-cardinfo { background: #fff; border: 1px solid var(--py-border); border-radius: var(--py-radius); padding: 0.75rem 0.875rem; margin: 0 auto 0.875rem; }
.pych-ci-title { font-size: 0.625rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.pych-ci-title i { margin-right: 5px; }
.pych-ci-desc { font-size: 0.8125rem; color: #0f172a; line-height: 1.5; margin-bottom: 0.5rem; word-break: break-word; }
.pych-ci-desc.pych-ci-empty { color: #94a3b8; font-style: italic; }
.pych-ci-chips { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 0.25rem; }
.pych-ci-chip { font-size: 0.6875rem; font-weight: 500; border-radius: 9999px; padding: 0.125rem 0.55rem; background: #f1f5f9; color: #475569; }
.pych-ci-chip.list { background: var(--py-primary-light); color: var(--py-primary); }
.pych-ci-chip.due { background: #fff7ed; color: #c2410c; }
.pych-ci-chip.done { background: #dcfce7; color: #15803d; }
.pych-ci-row { display: flex; gap: 0.5rem; font-size: 0.75rem; margin: 0.375rem 0 0.125rem; }
.pych-ci-key { color: var(--py-muted); font-weight: 600; white-space: nowrap; }
.pych-ci-key i { margin-right: 4px; }
.pych-ci-checklist { font-size: 0.75rem; margin-top: 0.5rem; border-top: 1px solid #f1f5f9; padding-top: 0.5rem; }
.pych-ci-progress { font-size: 0.6875rem; color: #94a3b8; font-weight: 600; margin-left: 4px; }
.pych-ci-check { font-size: 0.75rem; padding: 2px 0 2px 2px; }
.pych-ci-check i { color: #cbd5e1; margin-right: 6px; }
.pych-ci-check.on { color: var(--py-muted); }
.pych-ci-check.on i { color: #15803d; }
.pych-ci-dates { font-size: 0.6875rem; color: #94a3b8; margin-top: 0.5rem; }

.pych-compose { flex-shrink: 0; display: flex; align-items: flex-end; gap: 0.5rem; padding: 0.625rem 0.75rem; background: #fff; border-top: 1px solid var(--py-border); }
.pych-compose textarea {
  flex: 1; min-height: 2.5rem; max-height: 110px; resize: none; background: #fff; border: 1px solid var(--py-border);
  border-radius: 0.625rem; padding: 0.55rem 0.75rem; font-size: 0.8125rem; outline: none;
}
.pych-compose textarea:focus { border-color: var(--py-primary); box-shadow: 0 0 0 3px rgb(13 107 82 / 12%); }
.pych-send { background: var(--py-primary); color: #fff; border: none; border-radius: 0.625rem; width: 2.5rem; height: 2.5rem; cursor: pointer; font-size: 0.9rem; flex-shrink: 0; }
.pych-send:hover { background: var(--py-primary-dark); }
.pych-send:disabled { opacity: 0.5; }
.pych-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; color: var(--py-muted); text-align: center; padding: 2rem; font-size: 0.875rem; }
.pych-empty .icon {
  width: 3.5rem; height: 3.5rem; border-radius: 1rem; background: var(--py-primary-light); color: var(--py-primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 0.75rem;
}
.pych-back { display: none; }
@media (max-width: 767px) {
  .pych-shell { grid-template-columns: 1fr; }
  .pych-shell.show-chat .pych-sidebar { display: none; }
  .pych-shell:not(.show-chat) .pych-main { display: none; }
  .pych-back { display: inline-flex; align-items: center; justify-content: center; }
  .pych-scroll { padding: 0.75rem 4%; }
  .pych-row { max-width: 92%; }
  .pych-compose textarea, .pych-search input { font-size: 16px; }
}

/* ── Panduan (/panduan, owner 2026-10-04) ── */
.pdn-bab, .pdn-intisari, .pdn-toc { margin-bottom: 1rem; max-width: 60rem; scroll-margin-top: calc(var(--py-header-h) + 1rem); font-size: 0.875rem; line-height: 1.65; }
.pdn-bab p, .pdn-bab ul, .pdn-bab .py-table-wrap { margin-bottom: 0.75rem; }
.pdn-bab ul, .pdn-intisari ul { padding-left: 1.25rem; list-style: disc; }
.pdn-bab li, .pdn-intisari li { margin-bottom: 0.25rem; }
.pdn-bab .py-table-wrap { border: 1px solid var(--py-border); border-radius: 0.625rem; }
.pdn-bab .py-table td, .pdn-bab .py-table th { padding: 0.5rem 0.875rem; }
.pdn-label { font-size: 0.6875rem; font-weight: 700; color: var(--py-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.375rem; }
.pdn-intisari { background: var(--py-primary-light); border-color: #bfe3d6; }
.pdn-toc ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.25rem 1rem; counter-reset: pdn; }
.pdn-toc li { counter-increment: pdn; }
.pdn-toc a { display: flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.5rem; border-radius: 0.5rem; color: var(--py-text); text-decoration: none; }
.pdn-toc a::before { content: counter(pdn); font-size: 0.6875rem; font-weight: 700; color: var(--py-muted); width: 1rem; }
.pdn-toc a i { color: var(--py-primary); width: 1rem; text-align: center; }
.pdn-toc a:hover { background: var(--py-primary-light); color: var(--py-primary); }
.pdn-judul { display: flex; align-items: center; gap: 0.5rem; font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.875rem; }
.pdn-judul i { color: var(--py-primary); }
.pdn-no { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 0.4rem; background: var(--py-primary); color: #fff; font-size: 0.75rem; }
.pdn-sub { font-size: 0.875rem; font-weight: 700; margin: 1.25rem 0 0.5rem; }
.pdn-catatan { display: flex; gap: 0.5rem; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; border-radius: 0.625rem; padding: 0.625rem 0.75rem; font-size: 0.8125rem; }
.pdn-catatan > i { color: #d97706; margin-top: 0.25rem; }
.pdn-atas { margin: 0.5rem 0 0 !important; font-size: 0.75rem; }
.pdn-atas a { color: var(--py-muted); text-decoration: none; display: inline-flex; gap: 0.375rem; align-items: center; }
.pdn-atas a:hover { color: var(--py-primary); }
.pdn-tingkat { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.625rem; margin-bottom: 0.875rem; }
.pdn-tingkat > div { border: 1px solid var(--py-border); border-radius: 0.75rem; padding: 0.75rem; display: flex; flex-direction: column; gap: 0.125rem; }
.pdn-tingkat > div:nth-child(2) { margin-left: 0.5rem; } .pdn-tingkat > div:nth-child(3) { margin-left: 1rem; } .pdn-tingkat > div:nth-child(4) { margin-left: 1.5rem; }
@media (max-width: 767px) { .pdn-tingkat > div { margin-left: 0 !important; } }
.pdn-tingkat span { width: 2rem; height: 2rem; border-radius: 0.5rem; background: var(--py-primary-light); color: var(--py-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 0.25rem; }
.pdn-tingkat small { color: var(--py-muted); font-size: 0.75rem; line-height: 1.4; }
.pdn-tiga { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.625rem; margin-bottom: 0.75rem; }
.pdn-tiga > div { background: #f8fafc; border: 1px solid var(--py-border); border-radius: 0.75rem; padding: 0.75rem; }
.pdn-tiga b { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.25rem; }
.pdn-tiga b i { color: var(--py-primary); }
.pdn-tiga p { font-size: 0.8125rem; color: #475569; margin: 0 !important; }
.pdn-langkah { border-left: 3px solid var(--py-primary-light); padding: 0.25rem 0 0.25rem 0.875rem; margin-bottom: 1.125rem; }
.pdn-langkah h4 { font-weight: 700; margin-bottom: 0.375rem; }
.pdn-langkah ol { list-style: decimal; padding-left: 1.25rem; margin-bottom: 0.5rem; }
.pdn-langkah li { margin-bottom: 0.25rem; }
.pdn-tombol { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; font-weight: 600; padding: 0.0625rem 0.45rem; border: 1px solid var(--py-border); border-radius: 0.375rem; background: #fff; white-space: nowrap; vertical-align: baseline; }
.pdn-tombol i { color: var(--py-primary); }
.pdn-lbl { display: inline-block; color: #fff; font-size: 0.75rem; font-weight: 600; border-radius: 0.375rem; padding: 0.125rem 0.5rem; }
.pdn-ritme { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.75rem; }
.pdn-ritme > div { border: 1px solid var(--py-border); border-radius: 0.75rem; padding: 0.875rem; }
.pdn-ritme .pdn-label i { color: var(--py-primary); }
.pdn-ritme ul { margin: 0.375rem 0 0 !important; font-size: 0.8125rem; }
.pdn-faq details { border: 1px solid var(--py-border); border-radius: 0.625rem; padding: 0.625rem 0.875rem; margin-bottom: 0.5rem; }
.pdn-faq summary { cursor: pointer; font-weight: 600; }
.pdn-faq details[open] summary { margin-bottom: 0.375rem; color: var(--py-primary); }
.pdn-faq p { margin: 0 !important; color: #475569; }

/* ── Pilih banyak lalu arsipkan (owner 2026-10-04) ── */
.py-cek { width: 1rem; height: 1rem; accent-color: var(--py-primary); cursor: pointer; flex-shrink: 0; margin: 0; }
/* Kotak di kartu/kotak hanya penanda: kliknya tembus ke kartu, yang memegang pilihan. */
.py-kcard .py-cek, .py-tile .py-cek { pointer-events: none; }
.py-kcard .py-cek { position: absolute; top: 0.5rem; right: 0.5rem; }
.py-mode-pilih .py-kcard { position: relative; cursor: pointer; padding-right: 2rem; }
.py-mode-pilih .py-kcard.py-dipilih,
.py-mode-pilih .py-tile.py-dipilih { border-color: var(--py-primary); box-shadow: 0 0 0 2px var(--py-primary-light); }
.py-mode-pilih .py-list.py-dipilih { outline: 2px solid var(--py-primary); outline-offset: -2px; }
.py-mode-pilih .py-list.py-dipilih .py-kcard { opacity: 0.55; }
.py-mode-pilih .py-list-head .list-rename,
.py-mode-pilih .py-list-head .list-archive,
.py-mode-pilih .card-add,
.py-mode-pilih #list-add,
.py-mode-pilih .py-tile .py-pen,
.py-mode-pilih .py-tile-new { display: none; }
.py-mode-pilih .py-tile { cursor: pointer; }
.py-tile.py-tak-bisa { opacity: 0.5; cursor: not-allowed; }
.py-tile-head .py-cek { margin-left: auto; }
.py-bilah-pilih {
  position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 45;
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; justify-content: center;
  max-width: calc(100vw - 2rem); padding: 0.625rem 0.75rem 0.625rem 1rem;
  background: #fff; border: 1px solid var(--py-border); border-radius: 999px; box-shadow: var(--py-shadow-md);
  font-size: 0.8125rem;
}
.py-bilah-pilih b { color: var(--py-text); }

/* Lencana "kartu saya" ala notifikasi WA (owner 2026-10-05): jumlah kartu yang
   penanggung jawabnya saya & belum selesai; merah bila ada yang lewat tenggat. */
.py-lencana {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  min-width: 1.25rem; height: 1.25rem; padding: 0 0.375rem; border-radius: 999px;
  background: #22c55e; color: #fff; font-size: 0.6875rem; font-weight: 700; line-height: 1;
}
.py-lencana-merah { background: #ef4444; }
.nav-btn .py-lencana, .py-ws-menu-item .py-lencana { margin-left: auto; }
.nav-btn.active .py-lencana { box-shadow: 0 0 0 2px #fff; }
.py-tile-head .py-lencana { margin-left: auto; }
.py-tile-head .py-lencana + .py-pen { margin-left: 0; }
.py-list-head .py-lencana { margin-left: 0.375rem; vertical-align: 1px; }
/* Kartu saya di board: cincin hijau (garis kiri sudah dipakai warna tenggat). */
.py-kcard.py-kcard-saya { box-shadow: 0 0 0 2px #22c55e; }

/* Gelembung pesan belum dibaca ala WhatsApp (owner 2026-10-24, menyamai
   aplikasi mobile): KOMENTAR orang lain yang belum saya buka -- aturannya di
   app/services/pesan_baru.py. Hijau WA, bukan hijau lencana tugas. */
.py-pesan-baru {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.25rem; flex-shrink: 0;
  min-width: 1.25rem; height: 1.25rem; padding: 0 0.375rem; border-radius: 999px;
  background: #25d366; color: #fff; font-size: 0.6875rem; font-weight: 700; line-height: 1;
  text-decoration: none;
}
.py-pesan-baru i { font-size: 0.625rem; }
a.py-pesan-baru:hover { background: #1ebe5b; }
.pych-item-time.ada-baru { color: #1ebe5b; font-weight: 600; }
.pych-item-preview.ada-baru { color: #0f172a; font-weight: 500; }
.pych-item-bawah { display: flex; align-items: center; gap: 0.375rem; margin-top: 2px; }
.pych-item-bawah .pych-item-preview { flex: 1; min-width: 0; margin-top: 0; }

/* Halaman /kartu-saya */
.ks-ringkas { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.ks-ringkas button {
  display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 0.75rem;
  border-radius: 999px; border: 1px solid var(--py-border); background: #fff; font-size: 0.8125rem;
  color: #475569; cursor: pointer;
}
.ks-ringkas button.active { background: var(--py-primary); border-color: var(--py-primary); color: #fff; }
.ks-ringkas button b { font-weight: 700; }
.ks-bagian { margin-bottom: 1.25rem; }
.ks-bagian > h3 {
  display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 700;
  color: #334155; margin: 0 0 0.5rem;
}
.ks-bagian > h3 .n { font-weight: 500; color: #94a3b8; }
.ks-bagian.ks-merah > h3 { color: #b91c1c; }
.ks-daftar { display: flex; flex-direction: column; gap: 0.5rem; }
.ks-kartu {
  display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.625rem 0.75rem;
  background: #fff; border: 1px solid var(--py-border); border-radius: 0.625rem;
  text-decoration: none; color: inherit; min-width: 0;
}
.ks-kartu:hover { border-color: var(--py-primary); }
.ks-kartu .dot { width: 0.625rem; height: 0.625rem; border-radius: 0.2rem; margin-top: 0.3rem; flex-shrink: 0; }
.ks-kartu .isi { flex: 1; min-width: 0; }
.ks-kartu .judul { font-size: 0.875rem; font-weight: 600; color: #1e293b; overflow-wrap: anywhere; }
.ks-kartu .jejak { font-size: 0.75rem; color: #64748b; margin-top: 0.125rem; overflow-wrap: anywhere; }
.ks-kartu .kanan { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; font-size: 0.75rem; color: #64748b; flex-shrink: 0; }
.ks-tenggat { font-weight: 600; white-space: nowrap; }
.ks-tenggat.terlambat { color: #dc2626; }
.ks-tenggat.hari_ini { color: #c2410c; }
.ks-tenggat.segera { color: #b45309; }
.ks-selesai summary { cursor: pointer; font-size: 0.8125rem; font-weight: 700; color: #334155; margin-bottom: 0.5rem; }
.ks-kosong { padding: 2rem 1rem; text-align: center; color: #64748b; font-size: 0.875rem; background: #fff; border: 1px dashed var(--py-border); border-radius: 0.75rem; }

/* ── Kartu rutin (owner 2026-10-13) ── */
.py-rutin { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.0625rem 0.375rem; border-radius: 999px; background: #e0f2fe; color: #0369a1; font-size: 0.6875rem; font-weight: 600; white-space: nowrap; }
.py-rutin-hari { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.5rem; }
.py-rutin-hari label { cursor: pointer; }
.py-rutin-hari input { position: absolute; opacity: 0; pointer-events: none; }
.py-rutin-hari span { display: inline-block; min-width: 2.5rem; text-align: center; padding: 0.3125rem 0.5rem; border: 1px solid #cbd5e1; border-radius: 0.5rem; font-size: 0.75rem; color: #475569; background: #fff; }
.py-rutin-hari input:checked + span { background: var(--py-primary); border-color: var(--py-primary); color: #fff; font-weight: 600; }
.py-rutin-hari input:focus-visible + span { outline: 2px solid var(--py-primary); outline-offset: 2px; }
.py-rutin-riwayat { display: flex; flex-wrap: wrap; gap: 0.1875rem; margin-top: 0.25rem; }
.py-rutin-kotak { width: 0.875rem; height: 0.875rem; border-radius: 0.1875rem; background: #e2e8f0; }
.py-rutin-kotak.selesai { background: #16a34a; }
.py-rutin-kotak.terlewat { background: #dc2626; }
.py-rutin-kotak.belum { background: #fff; border: 2px solid #f59e0b; }
.py-rutin-kotak.libur { background: #f1f5f9; border: 1px dashed #cbd5e1; }

/* ── Resume Harian (owner 2026-10-13) ── */
.rs-bilah { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.875rem; }
.rs-bilah .py-input, .rs-bilah .py-select { width: auto; }
.rs-total { font-size: 0.875rem; color: #334155; margin-bottom: 0.75rem; }
.rs-total .hijau, .rs-orang .hijau { color: #15803d; }
.rs-total .merah, .rs-orang .merah { color: #b91c1c; }
.rs-total .ungu, .rs-orang .ungu { color: #6d28d9; }
.rs-catatan { font-size: 0.75rem; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 0.5rem; padding: 0.5rem 0.75rem; margin-bottom: 0.75rem; }
.rs-catatan i { margin-right: 0.375rem; }
.rs-orang { background: #fff; border: 1px solid var(--py-border); border-radius: 0.75rem; padding: 0.875rem 1rem; margin-bottom: 0.875rem; }
.rs-orang > h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; font-size: 0.9375rem; font-weight: 700; color: #0f172a; margin-bottom: 0.5rem; }
.rs-angka { font-size: 0.75rem; font-weight: 500; color: #64748b; }
.rs-sub { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #94a3b8; margin: 0.75rem 0 0.25rem; }
.rs-baris { display: flex; gap: 0.625rem; padding: 0.5rem 0; border-top: 1px solid #f1f5f9; }
.rs-ikon { margin-top: 0.1875rem; font-size: 0.9375rem; flex-shrink: 0; }
.rs-baris.rs-selesai .rs-ikon { color: #16a34a; }
.rs-baris.rs-lewat .rs-ikon { color: #dc2626; }
.rs-baris.rs-berjalan .rs-ikon { color: #d97706; }
.rs-baris.rs-belum .rs-ikon { color: #94a3b8; }
.rs-isi { flex: 1; min-width: 0; }
.rs-atas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 0.75rem; }
.rs-judul { font-size: 0.875rem; font-weight: 600; color: #1e293b; overflow-wrap: anywhere; }
.rs-judul:hover { color: var(--py-primary); text-decoration: underline; }
.rs-hasil { font-size: 0.75rem; color: #64748b; }
.rs-baris.rs-selesai .rs-hasil b { color: #15803d; }
.rs-baris.rs-lewat .rs-hasil b { color: #b91c1c; }
.rs-baris.rs-berjalan .rs-hasil b { color: #b45309; }
.rs-baris.rs-belum .rs-hasil b { color: #475569; }
.rs-jejak { font-size: 0.6875rem; color: #94a3b8; margin-top: 0.0625rem; overflow-wrap: anywhere; }
.rs-desk { font-size: 0.8125rem; color: #475569; white-space: pre-line; overflow-wrap: anywhere; margin-top: 0.3125rem; padding-left: 0.625rem; border-left: 2px solid #e2e8f0; }
.rs-cl-judul { font-size: 0.6875rem; font-weight: 700; color: #64748b; margin-top: 0.375rem; }
.rs-cl { list-style: none; margin: 0.125rem 0 0; padding: 0; font-size: 0.75rem; color: #475569; }
.rs-cl li { display: flex; gap: 0.375rem; align-items: baseline; }
.rs-cl li.ok { color: #94a3b8; text-decoration: line-through; }
.rs-cl li.ok i { color: #16a34a; }
.rs-kosong-kecil { font-size: 0.8125rem; padding: 0.25rem 0; }
.rs-cl .rs-kotak { color: #94a3b8; line-height: 1; }
.rs-baru { display: inline-block; margin-left: 0.25rem; padding: 0.0625rem 0.4375rem; border-radius: 999px; background: #ede9fe; color: #6d28d9; font-size: 0.6875rem; font-weight: 700; white-space: nowrap; vertical-align: middle; }

/* ── Catatan harian kartu rutin (owner 2026-10-13) ── */
.py-rutin-catatan { min-height: 3.5rem; }
.py-rutin-daftar { margin-top: 0.625rem; font-size: 0.8125rem; }
.py-rutin-daftar > summary { cursor: pointer; font-weight: 600; color: #334155; font-size: 0.75rem; }
.py-rutin-entri { padding: 0.375rem 0; border-top: 1px solid #f1f5f9; }
.py-rutin-entri .py-rutin-kotak { display: inline-block; vertical-align: -0.0625rem; margin-right: 0.375rem; }
.py-rutin-entri-catatan { margin: 0.1875rem 0 0 1.25rem; padding-left: 0.5rem; border-left: 2px solid #e2e8f0; color: #475569; white-space: pre-line; overflow-wrap: anywhere; }
.rs-harian { font-size: 0.8125rem; color: #1e293b; white-space: pre-line; overflow-wrap: anywhere; margin-top: 0.3125rem; padding: 0.3125rem 0.625rem; background: #f0fdf4; border-left: 2px solid #86efac; border-radius: 0 0.375rem 0.375rem 0; }

/* ── Foto bukti kartu (owner 2026-10-13) ── */
.py-foto-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-start; }
.py-foto { position: relative; width: 6rem; }
.py-foto img { width: 6rem; height: 6rem; object-fit: cover; border-radius: 0.5rem; border: 1px solid var(--py-border); display: block; background: #f1f5f9; }
.py-foto button { position: absolute; top: 0.1875rem; right: 0.1875rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 0; background: rgba(15, 23, 42, 0.7); color: #fff; font-size: 0.6875rem; line-height: 1; cursor: pointer; }
.py-foto button:hover { background: #dc2626; }
.py-foto-ket { display: block; font-size: 0.625rem; color: #64748b; margin-top: 0.125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-foto { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.375rem; }
.rs-foto img { width: 4rem; height: 4rem; object-fit: cover; border-radius: 0.375rem; border: 1px solid var(--py-border); display: block; background: #f1f5f9; }
.rs-foto a:hover img { border-color: var(--py-primary); }

/* Persetujuan penanggung jawab (owner 2026-10-20, app/services/persetujuan.py).
   PJ = bulatan bercincin di ujung kanan deret avatar: dia yang menyetujui,
   bukan yang mengerjakan. */
.py-kav.py-kav-pj { border-color: #f59e0b; box-shadow: 0 0 0 1px #f59e0b; }
.py-kav-row .py-kav-pj { margin-left: 0.25rem !important; }
.py-setuju {
  display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.1rem 0.4rem;
  border-radius: 0.375rem; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.py-setuju-menunggu { background: #ede9fe; color: #6d28d9; }
.py-setuju-kembali { background: #fee2e2; color: #b91c1c; }
.py-list-kunci {
  display: flex; align-items: center; gap: 0.375rem; margin: 0.25rem 0.5rem 0.5rem;
  font-size: 0.6875rem; color: var(--py-muted);
}
.py-setuju-panel {
  display: flex; gap: 0.625rem; align-items: flex-start; padding: 0.625rem 0.75rem;
  border-radius: 0.5rem; background: #f8fafc; border: 1px solid #e2e8f0; font-size: 0.8125rem; line-height: 1.45;
}
.py-setuju-panel > i { margin-top: 0.15rem; color: #64748b; }
.py-setuju-panel.menunggu { background: #f5f3ff; border-color: #ddd6fe; }
.py-setuju-panel.menunggu > i { color: #6d28d9; }
.py-setuju-panel.kembali { background: #fef2f2; border-color: #fecaca; }
.py-setuju-panel.kembali > i { color: #b91c1c; }
.py-setuju-panel.setuju { background: #f0fdf4; border-color: #bbf7d0; }
.py-setuju-panel.setuju > i { color: #15803d; }
.py-setuju-catatan { margin: 0.375rem 0 0.25rem; padding: 0.375rem 0.5rem; border-left: 3px solid currentColor; background: #fff; border-radius: 0.25rem; white-space: pre-wrap; }
.py-setuju-panel.kembali .py-setuju-catatan { color: #7f1d1d; }
/* Catatan pengajuan PIC (biasanya tautan hasil kerja), terpisah dari catatan approval. */
.py-setuju-catatan.py-setuju-ajuan { color: var(--py-text, #1e293b); border-left-color: #6d28d9; overflow-wrap: anywhere; }
.py-setuju-catatan a, .py-setuju-ajuan-riwayat a { color: #1d4ed8; text-decoration: underline; overflow-wrap: anywhere; }
.py-ajukan-lalu { margin-bottom: 0.75rem; padding: 0.5rem 0.625rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 0.375rem; font-size: 0.8125rem; }
.py-ajukan-lalu { max-height: 45vh; overflow-y: auto; }
.py-ajukan-putaran + .py-ajukan-putaran { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px dashed #cbd5e1; }
.py-setuju-aksi { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.py-setuju-riwayat { margin-top: 0.5rem; font-size: 0.75rem; }
.py-setuju-riwayat summary { cursor: pointer; color: var(--py-muted); }
.py-setuju-riwayat ul { margin: 0.375rem 0 0; padding-left: 1rem; display: grid; gap: 0.25rem; }
/* Kartu Saya: bagian persetujuan */
.ks-ungu h3 { color: #6d28d9; }
.ks-catatan { display: block; margin-top: 0.125rem; color: #b91c1c; font-size: 0.75rem; }
.ks-peran { display: inline-block; margin-left: 0.25rem; padding: 0 0.3rem; border-radius: 0.25rem; background: #fef3c7; color: #a16207; font-size: 0.625rem; font-weight: 700; vertical-align: middle; }
/* Resume Harian: keadaan persetujuan (pages/_resume-teks.js KEADAAN) */
.rs-baris.rs-menunggu .rs-ikon { color: #7c3aed; }
.rs-baris.rs-dikembalikan .rs-ikon { color: #be123c; }
.rs-baris.rs-menunggu .rs-hasil b { color: #6d28d9; }
.rs-baris.rs-dikembalikan .rs-hasil b { color: #be123c; }
.rs-catatan-pj { margin-top: 0.25rem; padding: 0.25rem 0.5rem; border-left: 3px solid #be123c; background: #fff1f2; color: #9f1239; font-size: 0.8125rem; border-radius: 0.25rem; }
.rs-antrean td, .rs-antrean th { text-align: left; }
/* Kartu di Review dikunci (services/persetujuan.tolak_jika_terkunci) */
.py-kunci-review { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0 0 0.75rem; padding: 0.5rem 0.75rem; border-radius: 0.5rem; background: #f5f3ff; color: #5b21b6; font-size: 0.8125rem; }
.py-kunci-review i { margin-top: 0.15rem; }
/* Riwayat perubahan & tenggat yang diubah (services/riwayat_tenggat.py) */
.py-tenggat-ubah { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.1rem 0.4rem; border-radius: 0.375rem; background: #f1f5f9; color: #475569; font-weight: 600; white-space: nowrap; }
.py-tenggat-ubah.mundur { background: #fee2e2; color: #b91c1c; }
.py-riwayat { margin: 0.25rem 0 0.5rem; padding-left: 1rem; display: grid; gap: 0.375rem; font-size: 0.75rem; }
.py-riwayat li.mundur b { color: #b91c1c; }
.rs-tenggat-ubah { display: inline-block; margin-left: 0.25rem; padding: 0 0.375rem; border-radius: 0.25rem; background: #f1f5f9; color: #475569; font-size: 0.6875rem; font-weight: 600; }
.rs-tenggat-ubah.mundur { background: #fee2e2; color: #b91c1c; }
/* Riwayat tenggat di Resume (owner 2026-10-21): lini masa kecil per kartu. */
.rs-rt { margin-top: 0.375rem; padding: 0.375rem 0.625rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 0.5rem; font-size: 0.75rem; color: #334155; }
.rs-rt.curiga { background: #fff7f7; border-color: #fecaca; }
.rs-rt-judul { font-size: 0.6875rem; font-weight: 700; color: #64748b; margin-bottom: 0.25rem; }
.rs-rt.curiga .rs-rt-judul { color: #b91c1c; }
.rs-rt ol { list-style: none; margin: 0; padding: 0 0 0 0.875rem; border-left: 2px solid #e2e8f0; }
.rs-rt li { position: relative; display: flex; flex-wrap: wrap; gap: 0.125rem 0.625rem; padding: 0.125rem 0; }
.rs-rt li::before { content: ""; position: absolute; left: -1.3125rem; top: 0.4375rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #94a3b8; border: 2px solid #fff; box-sizing: content-box; }
.rs-rt li.tetapkan::before { background: #3b82f6; }
.rs-rt li.maju::before { background: #16a34a; }
.rs-rt li.mundur::before { background: #f59e0b; }
.rs-rt li.curiga::before, .rs-rt li.hapus::before { background: #dc2626; }
.rs-rt-tgl { min-width: 8.5rem; }
.rs-rt-kata { color: #475569; }
.rs-rt li.curiga .rs-rt-kata { color: #b91c1c; font-weight: 600; }
.rs-rt-kata em { font-style: normal; }
.rs-rt-kata small { color: #94a3b8; font-weight: 400; }
.rs-rt-oleh { color: #94a3b8; margin-left: auto; }
.rs-rt-awal { margin-top: 0.25rem; padding-top: 0.25rem; border-top: 1px dashed #e2e8f0; font-weight: 600; color: #b91c1c; }
.rs-rt-awal i { margin-right: 0.25rem; }
/* Ringkasan kartu yang belum punya PIC / penanggung jawab (board.js ringkasPeran) */
.py-kurang-peran { background: #fef3c7; color: #a16207; }

/* ── Kinerja Tim (owner 2026-10-21) ── */
.kn-stats { margin-bottom: 1rem; }
.kn-blok { margin-bottom: 1rem; overflow: hidden; }
.kn-blok th.kn-n, .kn-blok td.kn-n { text-align: right; white-space: nowrap; }
.kn-tabel td.kn-p { min-width: 7rem; }
.kn-tabel tr.kn-baris > td:first-child { white-space: nowrap; }
.kn-baris { cursor: pointer; }
.kn-baris.buka { background: #f8fafc; }
.kn-panah { width: 0.875rem; margin-right: 0.375rem; color: #94a3b8; font-size: 0.6875rem; }
.kn-rincian > td { background: #fbfcfd; padding-top: 0.25rem; }
.kn-rincian .rs-sub:first-child { margin-top: 0.25rem; }
.kn-blok .hijau { color: #15803d; }
.kn-blok .merah { color: #b91c1c; }
.kn-blok .kuning { color: #b45309; }
.pm-bar > span.kn-bar-hijau { background: #16a34a; }
.pm-bar > span.kn-bar-kuning { background: #f59e0b; }
.pm-bar > span.kn-bar-merah { background: #dc2626; }
.kn-cara { line-height: 1.5; }
/* Tren selesai per minggu (Kinerja Tim) */
.kn-tren-alat { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.kn-tren-alat .py-select { width: auto; min-width: 10rem; }
.kn-legenda { display: flex; flex-wrap: wrap; gap: 0.375rem 1rem; align-items: center; font-size: 0.75rem; color: #334155; margin-bottom: 0.5rem; }
.kn-kunci { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 0.1875rem; margin-right: 0.375rem; vertical-align: -0.0625rem; }
.kn-kunci-arsir { background: repeating-linear-gradient(45deg, #ea580c 0 3px, #f4a77d 3px 5px); }
.kn-grafik { position: relative; width: 100%; }
.kn-svg { display: block; max-width: 100%; }
.kn-sumbu { font-size: 10px; fill: #94a3b8; }
.kn-total { font-size: 11px; font-weight: 600; fill: #334155; }
.kn-hit { cursor: pointer; }
.kn-hit.aktif { fill: rgb(15 23 42 / 4%); }
.kn-tip { position: absolute; top: 0; pointer-events: none; background: #0f172a; color: #f8fafc; font-size: 0.75rem; line-height: 1.5; padding: 0.375rem 0.625rem; border-radius: 0.375rem; white-space: nowrap; box-shadow: var(--py-shadow-md); z-index: 2; }
.kn-tip .pm-muted { color: #cbd5e1; }

/* ── Semua Board (/semua-board, owner 2026-10-26) ──────────────────────────
   Seluruh kartu lintas workspace dalam satu papan. Warna = WORKSPACE (garis
   kiri, titik, dan pita asal), jadi tenggat di sini hanya lewat lencananya.
   Variabel per kartu: --ws (warna), --ws-muda (10%), --ws-sedang (22%). */
.sb-cari {
  display: inline-flex; align-items: center; gap: 0.5rem; background: #fff; border: 1px solid var(--py-border);
  border-radius: 0.625rem; padding: 0 0.75rem; height: 2.25rem; color: #94a3b8; min-width: 15rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sb-cari:focus-within { border-color: var(--py-primary); box-shadow: 0 0 0 3px rgb(13 107 82 / 12%); }
.sb-cari input { border: none; outline: none; background: none; font-size: 0.8125rem; color: var(--py-text); width: 100%; min-width: 0; }
.sb-alat { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.sb-pilih {
  display: inline-flex; align-items: center; gap: 0.5rem; height: 2.25rem; padding: 0 0.25rem 0 0.75rem;
  background: #fff; border: 1px solid var(--py-border); border-radius: 0.625rem; color: #94a3b8; font-size: 0.8125rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sb-pilih:focus-within { border-color: var(--py-primary); box-shadow: 0 0 0 3px rgb(13 107 82 / 12%); }
.sb-pilih.aktif { border-color: var(--py-primary); background: var(--py-primary-light); color: var(--py-primary); }
.sb-pilih select {
  border: none; outline: none; background: none; font: inherit; color: var(--py-text); cursor: pointer;
  padding: 0 0.25rem; height: 100%; max-width: 17rem;
}
.sb-pilih.aktif select { color: var(--py-primary); font-weight: 600; }
@media (max-width: 767px) { .sb-pilih { flex: 1 1 100%; } .sb-pilih select { font-size: 16px; max-width: none; flex: 1; } }
.sb-waktu { color: #475569; }
.sb-bilah { display: flex; flex-direction: column; gap: 0.625rem; margin: -0.25rem 0 1rem; }
.sb-legenda, .sb-ringkas { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.sb-ringkas:empty { display: none; }
.sb-titik { width: 0.625rem; height: 0.625rem; border-radius: 999px; background: var(--ws); flex-shrink: 0; box-shadow: 0 0 0 3px var(--ws-sedang); }
.sb-chip {
  display: inline-flex; align-items: stretch; background: var(--ws-muda); border: 1px solid var(--ws-sedang);
  border-radius: 999px; overflow: hidden; transition: opacity 0.15s, filter 0.15s;
}
.sb-chip button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
.sb-chip-utama { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.4rem 0.3rem 0.75rem; font-size: 0.78rem; font-weight: 600; color: #1e293b !important; }
.sb-chip-utama b { font-weight: 700; color: var(--ws); background: #fff; border-radius: 999px; padding: 0 0.4rem; font-size: 0.7rem; min-width: 1.25rem; text-align: center; }
.sb-chip-warna { padding: 0 0.625rem 0 0.375rem; color: var(--ws) !important; font-size: 0.7rem; opacity: 0.55; }
.sb-chip-warna:hover { opacity: 1; }
.sb-chip.mati { background: #fff; border-color: var(--py-border); filter: grayscale(1); opacity: 0.55; }
.sb-chip.mati .sb-chip-utama { text-decoration: line-through; }
.sb-reset { background: none; border: none; color: var(--py-muted); font-size: 0.75rem; cursor: pointer; text-decoration: underline; }
.sb-sorot {
  display: inline-flex; align-items: center; gap: 0.375rem; border: 1px solid transparent; cursor: pointer;
  border-radius: 0.5rem; padding: 0.25rem 0.625rem; font-size: 0.75rem; font-weight: 600; transition: box-shadow 0.15s;
}
.sb-sorot-telat { background: #fee2e2; color: #b91c1c; }
.sb-sorot-hariini { background: #ffedd5; color: #c2410c; }
.sb-sorot-ungu { background: #ede9fe; color: #6d28d9; }
.sb-sorot-wa { background: #dcfce7; color: #15803d; }
.sb-sorot.aktif { border-color: currentColor; box-shadow: 0 0 0 2px #fff, 0 0 0 3px currentColor; }

.sb-papan-gulir { overflow-x: auto; padding-bottom: 0.75rem; flex: 1; min-height: 0; scroll-snap-type: x proximity; }
.sb-papan-isi { display: flex; gap: 0.875rem; align-items: flex-start; height: 100%; }
.sb-kolom {
  flex: 0 0 300px; width: 300px; max-height: 100%; display: flex; flex-direction: column;
  background: #eef1f5; border-radius: var(--py-radius-lg); scroll-snap-align: start;
  --kol: #64748b;
}
.sb-kolom-backlog { --kol: #64748b; }
.sb-kolom-todo { --kol: #2563eb; }
.sb-kolom-proses { --kol: #d97706; }
.sb-kolom-revisi { --kol: #dc2626; }
.sb-kolom-review { --kol: #7c3aed; }
.sb-kolom-selesai { --kol: #15803d; }
.sb-kolom-kepala {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 0.875rem 0.5rem;
  border-top: 3px solid var(--kol); border-radius: var(--py-radius-lg) var(--py-radius-lg) 0 0;
}
.sb-kolom-ikon {
  width: 1.625rem; height: 1.625rem; border-radius: 0.5rem; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--kol); font-size: 0.75rem; box-shadow: var(--py-shadow);
}
.sb-kolom-kepala h3 { font-size: 0.8125rem; font-weight: 700; color: #1e293b; flex: 1; }
.sb-kolom-n { font-size: 0.7rem; font-weight: 700; color: var(--kol); background: #fff; border-radius: 999px; padding: 0.1rem 0.5rem; }
.sb-kolom-isi { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.25rem 0.625rem 0.75rem; overflow-y: auto; min-height: 0; }
.sb-kolom-kosong { text-align: center; color: #94a3b8; font-size: 0.75rem; padding: 1.25rem 0; border: 1.5px dashed #d5dbe3; border-radius: 0.75rem; }
@media (max-width: 767px) { .sb-kolom { flex-basis: 86vw; width: 86vw; max-height: 75vh; } .sb-cari { min-width: 0; flex: 1; } .sb-cari input { font-size: 16px; } }

.sb-kartu {
  position: relative; background: #fff; border-radius: 0.75rem; border: 1px solid var(--py-border);
  border-left: 4px solid var(--ws); box-shadow: var(--py-shadow); padding: 0.625rem 0.75rem 0.6rem;
  font-size: 0.8125rem; cursor: pointer; transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}
.sb-kartu:hover { transform: translateY(-1px); box-shadow: var(--py-shadow-md); border-color: var(--ws-sedang); border-left-color: var(--ws); }
.sb-kartu:focus-visible { outline: 2px solid var(--ws); outline-offset: 2px; }
.sb-kartu.sb-saya { box-shadow: 0 0 0 1.5px #22c55e, var(--py-shadow); }
.sb-kartu.sb-beres .sb-judul { color: #64748b; }
.sb-asal { display: flex; align-items: center; gap: 0.375rem; min-width: 0; margin-bottom: 0.375rem; font-size: 0.6875rem; }
.sb-ws {
  display: inline-flex; align-items: center; gap: 0.375rem; flex-shrink: 0; max-width: 60%;
  background: var(--ws-muda); color: var(--ws); font-weight: 700; padding: 0.1rem 0.5rem 0.1rem 0.375rem; border-radius: 999px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-ws .sb-titik { width: 0.4375rem; height: 0.4375rem; box-shadow: none; }
.sb-papan { color: var(--py-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sb-judul { color: #0f172a; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.sb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.5rem; margin-top: 0.5rem; font-size: 0.6875rem; color: var(--py-muted); }
.sb-meta:not(:has(> *)) { display: none; }
.sb-ikon { display: inline-flex; align-items: center; gap: 0.25rem; }
.sb-lencana-saya { background: #dcfce7; color: #15803d; font-weight: 700; border-radius: 0.375rem; padding: 0.05rem 0.375rem; }
.sb-kartu .py-kav-row { margin-left: auto; }

.sb-kosong { text-align: center; padding: 4rem 1rem; color: var(--py-muted); background: #fff; border: 1px dashed var(--py-border); border-radius: var(--py-radius-lg); }
.sb-kosong > i { font-size: 1.75rem; color: #cbd5e1; margin-bottom: 0.75rem; }
.sb-kosong p { margin-bottom: 0.875rem; }

/* Pratinjau kartu */
.sb-pv-asal {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.75rem; color: #475569;
  background: var(--ws-muda); border: 1px solid var(--ws-sedang); border-radius: 0.625rem; padding: 0.5rem 0.75rem;
}
.sb-pv-asal b { color: var(--ws); }
.sb-pv-asal > i { font-size: 0.5rem; color: #94a3b8; }
.sb-pv-list { font-weight: 600; color: #1e293b; }
.sb-pv-lencana { margin-top: 0.75rem; }
.sb-pv-catatan { display: flex; gap: 0.625rem; margin-top: 0.75rem; padding: 0.625rem 0.75rem; background: #fef2f2; border-radius: 0.625rem; color: #991b1b; font-size: 0.8125rem; }
.sb-pv-catatan p { margin-top: 0.125rem; white-space: pre-wrap; }
.sb-pv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1rem; }
@media (max-width: 480px) { .sb-pv-grid { grid-template-columns: 1fr; } }
.sb-pv-grid > div { background: #f8fafc; border-radius: 0.625rem; padding: 0.625rem 0.75rem; display: flex; flex-direction: column; gap: 0.375rem; }
.sb-pv h4 { font-size: 0.6875rem; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: 0.04em; }
.sb-pv h4 small { text-transform: none; letter-spacing: 0; font-weight: 500; color: #94a3b8; margin-left: 0.25rem; }
.sb-pv-orang { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; }
.sb-pv-orang .py-kav { width: 1.75rem; height: 1.75rem; font-size: 0.625rem; }
.sb-pv-judul { margin-top: 1rem; margin-bottom: 0.375rem; }
.sb-pv-desk { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.8125rem; line-height: 1.55; color: #334155; max-height: 14rem; overflow-y: auto; background: #f8fafc; border-radius: 0.625rem; padding: 0.625rem 0.75rem; }
.sb-pv-kosong { font-size: 0.8125rem; color: #94a3b8; font-style: italic; }
.sb-pv-info { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; margin-top: 1rem; font-size: 0.75rem; }
.sb-pv-info dt { color: #94a3b8; }
.sb-pv-info dd { color: #1e293b; font-weight: 500; }
.py-modal-actions a.py-btn .py-pesan-baru { margin-left: 0.125rem; }

/* Pemilih warna workspace */
.sb-warna-ket { font-size: 0.8125rem; color: #475569; margin-bottom: 0.875rem; }
.sb-warna-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.5rem; }
.sb-swatch {
  aspect-ratio: 1; border-radius: 0.625rem; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--py-border); cursor: pointer;
  position: relative; display: inline-flex; align-items: center; justify-content: center; transition: transform 0.1s;
}
.sb-swatch:hover { transform: scale(1.08); }
.sb-swatch.aktif { box-shadow: 0 0 0 2px #0f172a; }
.sb-swatch.aktif::after { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #fff; font-size: 0.75rem; }
.sb-swatch-lain { background: conic-gradient(#ef4444, #eab308, #22c55e, #06b6d4, #6366f1, #d946ef, #ef4444); color: #fff; font-size: 0.75rem; }
.sb-swatch-lain input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.sb-otomatis { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.875rem; font-size: 0.8125rem; color: #334155; cursor: pointer; }
.sb-warna-contoh { margin-top: 0.875rem; }
.sb-warna-contoh .sb-kartu { cursor: default; }
