/* Kemudi PMO — gaya tampilan (dipisah dari index.html) */
:root{
  --acc-l:#0B6E99; --acc-d:#56B4E0;
  --bg:#E7EBEF; --surface:#FFFFFF; --surface-2:#F3F5F8; --sunk:#EDF0F4;
  --ink:#142030; --ink-2:#33455A; --muted:#5D6D80; --line:#D2D9E1; --line-2:#E4E8ED;
  --accent:var(--acc-l); --accent-soft:color-mix(in srgb, var(--accent) 13%, transparent); --on-accent:#FFFFFF;
  --crit:#D4470E; --crit-soft:#FBE3D7;
  --ok:#2A7F3D; --ok-soft:#DDF1E1; --warn:#9A6400; --warn-bar:#E0A22B; --warn-soft:#FBEFD2; --bad:#BE2A2A; --bad-soft:#F9DEDE;
  --bar:#8FB7CC; --bar-done:var(--accent); --grid:#E6EAEE; --weekend:#F1F3F6;
  --shadow:0 1px 0 rgba(20,32,48,.04), 0 6px 18px -10px rgba(20,32,48,.18);
  --font:"IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --cond:"IBM Plex Sans Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
  box-sizing:border-box; padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px);
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){
  --bg:#0E151E; --surface:#16202B; --surface-2:#1B2734; --sunk:#121B25;
  --ink:#E4EBF2; --ink-2:#C2CEDA; --muted:#8FA0B3; --line:#2A3847; --line-2:#223040;
  --accent:var(--acc-d); --on-accent:#081520;
  --crit:#FF7A3D; --crit-soft:#3A2418; --ok:#5CC97A; --ok-soft:#173022; --warn:#F2B84B; --warn-bar:#D99A2B; --warn-soft:#33290F; --bad:#FF6B6B; --bad-soft:#3A1C1F;
  --bar:#3C6A82; --grid:#223040; --weekend:#18232F; --shadow:0 1px 0 rgba(0,0,0,.2), 0 8px 20px -12px rgba(0,0,0,.6);
  color-scheme: dark; } }
:root[data-theme="dark"]{
  --bg:#0E151E; --surface:#16202B; --surface-2:#1B2734; --sunk:#121B25;
  --ink:#E4EBF2; --ink-2:#C2CEDA; --muted:#8FA0B3; --line:#2A3847; --line-2:#223040;
  --accent:var(--acc-d); --on-accent:#081520;
  --crit:#FF7A3D; --crit-soft:#3A2418; --ok:#5CC97A; --ok-soft:#173022; --warn:#F2B84B; --warn-bar:#D99A2B; --warn-soft:#33290F; --bad:#FF6B6B; --bad-soft:#3A1C1F;
  --bar:#3C6A82; --grid:#223040; --weekend:#18232F; --shadow:0 1px 0 rgba(0,0,0,.2), 0 8px 20px -12px rgba(0,0,0,.6);
  color-scheme: dark; }
html{ height:100%; scroll-padding-top:env(safe-area-inset-top,0px); background:var(--bg); }
*,*::before,*::after{ box-sizing:border-box; }
body{ margin:0; height:100%; background:var(--bg); color:var(--ink); font:400 14px/1.5 var(--font); -webkit-font-smoothing:antialiased; }
body::before{ content:""; position:fixed; inset:0 0 auto; height:env(safe-area-inset-top,0px); z-index:60; background:var(--surface); }
button,input,select,textarea{ font:inherit; color:inherit; }
a{ color:var(--accent); }
:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.num{ font-variant-numeric:tabular-nums; }

/* ---------- layout ---------- */
.app{ display:grid; grid-template-columns:252px minmax(0,1fr); height:100%; }
.side{ background:var(--surface); border-right:1px solid var(--line); display:flex; flex-direction:column; min-height:0; }
.brand{ display:flex; align-items:center; gap:10px; padding:16px 18px 14px; border-bottom:1px solid var(--line-2); }
.brand-mark{ width:30px; height:30px; border-radius:8px; background:var(--ink); color:var(--surface); display:grid; place-items:center; flex:none; }
.brand b{ font-size:16px; letter-spacing:-.01em; display:block; line-height:1.1; }
.brand small{ color:var(--muted); font-size:12px; }
.nav{ overflow:auto; padding:10px 10px 20px; flex:1; }
.nav h6{ margin:14px 10px 6px; font:500 12px/1.2 var(--font); color:var(--muted); }
.nav a{ display:flex; align-items:center; gap:10px; padding:7px 10px; border-radius:7px; color:var(--ink-2); text-decoration:none; font-weight:500; }
.nav a svg{ width:17px; height:17px; flex:none; color:var(--muted); }
.nav a:hover{ background:var(--surface-2); }
.nav a[aria-current="page"]{ background:var(--accent-soft); color:var(--ink); }
.nav a[aria-current="page"] svg{ color:var(--accent); }
.nav .count{ margin-left:auto; font:500 12px var(--cond); color:var(--muted); }
.side-foot{ border-top:1px solid var(--line-2); padding:10px 14px; font-size:12px; color:var(--muted); display:flex; gap:8px; align-items:center; }
.dot{ width:8px; height:8px; border-radius:50%; background:var(--muted); flex:none; }
.dot.ok{ background:var(--ok); } .dot.warn{ background:var(--warn-bar); } .dot.bad{ background:var(--bad); }

.main{ display:flex; flex-direction:column; min-width:0; min-height:0; }
.top{ display:flex; align-items:center; gap:12px; padding:10px 24px; background:var(--surface); border-bottom:1px solid var(--line); min-height:56px; position:relative; z-index:5; }
.top .menu-btn{ display:none; }
.proj-switch{ display:flex; align-items:center; gap:8px; min-width:0; }
.proj-switch select{ border:1px solid var(--line); background:var(--surface-2); border-radius:7px; padding:6px 30px 6px 10px; font-weight:600; max-width:min(52vw,420px); text-overflow:ellipsis; appearance:none; background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%); background-position:calc(100% - 16px) 50%,calc(100% - 11px) 50%; background-size:5px 5px; background-repeat:no-repeat; }
.top .spacer{ flex:1; }
.timer-chip{ display:flex; align-items:center; gap:8px; padding:5px 6px 5px 10px; border-radius:20px; background:var(--crit-soft); color:var(--crit); font:600 13px var(--cond); border:0; cursor:pointer; }
.timer-chip .pulse{ width:8px; height:8px; border-radius:50%; background:var(--crit); animation:pulse 1.4s infinite; }
@keyframes pulse{ 50%{ opacity:.25; } }
#view{ flex:1; overflow:auto; padding:22px 24px 56px; min-height:0; }
.scrim{ display:none; }

/* ---------- type & blocks ---------- */
.vh{ display:flex; align-items:flex-end; gap:12px; flex-wrap:wrap; margin-bottom:18px; }
.vh h1{ margin:0; font-size:23px; line-height:1.2; letter-spacing:-.015em; font-weight:600; }
.vh p{ margin:3px 0 0; color:var(--muted); max-width:72ch; }
.vh .actions{ margin-left:auto; display:flex; gap:8px; flex-wrap:wrap; }
h2.sec{ font-size:15px; font-weight:600; margin:0; }
.panel{ background:var(--surface); border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow); min-width:0; }
.panel-h{ display:flex; align-items:center; gap:10px; padding:12px 16px; border-bottom:1px solid var(--line-2); flex-wrap:wrap; }
.panel-h .sub{ color:var(--muted); font-size:13px; }
.panel-h .actions{ margin-left:auto; display:flex; gap:6px; flex-wrap:wrap; }
.panel-b{ padding:14px 16px; }
.panel-b.flush{ padding:0; }
.grid{ display:grid; gap:16px; }
.g2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.g3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.g-main{ grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); }
.stack{ display:flex; flex-direction:column; gap:16px; }
.muted{ color:var(--muted); } .small{ font-size:12.5px; } .strong{ font-weight:600; }
.empty{ padding:28px 18px; text-align:center; color:var(--muted); }
.empty b{ display:block; color:var(--ink); font-size:15px; margin-bottom:4px; }

/* KPI band — one ruled strip, not separate cards */
.band{ display:grid; grid-template-columns:repeat(auto-fit,minmax(138px,1fr)); background:var(--surface); border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow); margin-bottom:16px; overflow:hidden; }
.band > div{ padding:12px 16px 13px; border-right:1px solid var(--line-2); border-bottom:1px solid var(--line-2); margin:0 -1px -1px 0; min-width:0; }
.band > div[data-tip]{ cursor:help; } .band > div[data-tip] dt{ text-decoration:underline dotted; text-underline-offset:3px; }
.band > div[data-tip]:hover, .band > div[data-tip]:focus-visible{ background:var(--surface-2); outline:none; }
#ktip{ position:fixed; z-index:70; display:none; max-width:360px; background:var(--ink); color:var(--surface); font-size:12.5px; line-height:1.5; padding:9px 11px; border-radius:8px; white-space:pre-line; pointer-events:none; box-shadow:0 8px 24px -8px rgba(0,0,0,.45); }
.band dt{ font-size:12.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.band dd{ margin:2px 0 0; font:600 21px/1.15 var(--cond); font-variant-numeric:tabular-nums; letter-spacing:-.01em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.band dd small{ display:block; font:500 12px/1.3 var(--font); color:var(--muted); letter-spacing:0; overflow:hidden; text-overflow:ellipsis; }
.band .ok dd{ color:var(--ok); } .band .warn dd{ color:var(--warn); } .band .bad dd{ color:var(--bad); }

/* buttons */
.btn{ display:inline-flex; align-items:center; gap:7px; border:1px solid var(--line); background:var(--surface); color:var(--ink); border-radius:7px; padding:7px 12px; font-weight:500; cursor:pointer; white-space:nowrap; line-height:1.2; }
.btn:hover{ background:var(--surface-2); }
.btn.primary{ background:var(--accent); border-color:var(--accent); color:var(--on-accent); }
.btn.primary:hover{ filter:brightness(1.07); }
.btn.danger{ color:var(--bad); }
.btn.sm{ padding:4px 9px; font-size:13px; }
.btn svg{ width:16px; height:16px; }
.btn:disabled{ opacity:.5; cursor:not-allowed; }
.ib{ border:0; background:transparent; color:var(--muted); padding:5px; border-radius:6px; cursor:pointer; display:inline-grid; place-items:center; }
.ib:hover{ background:var(--surface-2); color:var(--ink); }
.ib svg{ width:16px; height:16px; }
.seg{ display:inline-flex; border:1px solid var(--line); border-radius:7px; overflow:hidden; background:var(--surface); }
.seg button{ border:0; background:transparent; padding:5px 11px; cursor:pointer; color:var(--ink-2); font-weight:500; }
.seg button + button{ border-left:1px solid var(--line); }
.seg button[aria-pressed="true"]{ background:var(--ink); color:var(--surface); }
.field-inline{ border:1px solid var(--line); background:var(--surface); border-radius:7px; padding:6px 9px; }
input.field-inline[type=search]{ min-width:180px; }

/* pills */
.pill{ display:inline-flex; align-items:center; gap:5px; padding:1px 8px; border-radius:20px; font:500 12px/1.6 var(--font); white-space:nowrap; background:var(--sunk); color:var(--ink-2); }
.pill.ok{ background:var(--ok-soft); color:var(--ok); } .pill.warn{ background:var(--warn-soft); color:var(--warn); }
.pill.bad{ background:var(--bad-soft); color:var(--bad); } .pill.crit{ background:var(--crit-soft); color:var(--crit); }
.pill.info{ background:var(--accent-soft); color:var(--accent); }

/* tables */
.tw{ overflow-x:auto; }
table.t{ width:100%; border-collapse:collapse; font-size:13.5px; }
.t th{ text-align:left; font:500 12.5px/1.3 var(--cond); color:var(--muted); padding:9px 10px; border-bottom:1px solid var(--line); background:var(--surface-2); position:sticky; top:0; white-space:nowrap; z-index:1; }
.t td{ padding:8px 10px; border-bottom:1px solid var(--line-2); vertical-align:middle; }
.t tr:last-child td{ border-bottom:0; }
.t tbody tr:hover td{ background:var(--surface-2); }
.t .r{ text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.t .nw{ white-space:nowrap; }
.t .parent td{ font-weight:600; background:color-mix(in srgb, var(--sunk) 60%, transparent); }
.form .deps{ display:flex; flex-direction:column; max-height:280px; overflow-y:auto; overflow-x:hidden; border:1px solid var(--line); border-radius:7px; padding:2px 8px; font-weight:400; }
.form .deps .dep-row{ display:flex; align-items:center; gap:8px; padding:3px 0; border-bottom:1px solid var(--line-2); }
.form .deps .dep-row:last-child{ border-bottom:0; }
.form .deps .dep-row > label{ flex:1 1 auto; min-width:0; flex-direction:row; align-items:center; gap:8px; font-weight:400; color:var(--ink); font-size:13px; }
.form .deps .dep-row > label input{ flex:none; }
.form .deps .dep-row select.dep-type, .form .deps .dep-row input.dep-lag{ flex:none; width:66px; padding:3px 6px; border-radius:6px; font-size:12.5px; opacity:.4; }
.form .deps .dep-row input.dep-lag{ width:58px; text-align:right; }
.form .deps .dep-row.on select.dep-type, .form .deps .dep-row.on input.dep-lag{ opacity:1; }
.form .deps .dep-row.on{ background:color-mix(in srgb, var(--accent) 6%, transparent); }
.t tr.yr-sep td{ background:var(--sunk); font:700 13px var(--font); color:var(--ink); padding-top:9px; padding-bottom:9px; border-top:2px solid var(--line); }
.t tr.yr-sep td span{ font-weight:400; color:var(--muted); }
.t th.rs-th{ position:relative; }
.th-rs{ position:absolute; top:0; right:-5px; width:10px; height:100%; cursor:col-resize; z-index:2; touch-action:none; }
.th-rs::after{ content:''; position:absolute; top:28%; bottom:28%; left:4px; width:2px; border-radius:1px; background:var(--line); }
.th-rs:hover::after, .th-rs.drag::after{ background:var(--accent); top:0; bottom:0; }
.t.colfix td{ overflow:hidden; text-overflow:ellipsis; }
.t tfoot .total td{ font-weight:700; background:var(--sunk); border-top:2px solid var(--line); }
.t td.name{ min-width:280px; }
.nmcell{ display:flex; align-items:flex-start; gap:2px; line-height:1.4; }
.nmcell .tog{ flex:none; }
.t .wbs{ font:500 12.5px var(--cond); color:var(--muted); white-space:nowrap; }
.t input[type=number].mini{ width:62px; border:1px solid var(--line); border-radius:6px; padding:3px 6px; background:var(--surface); text-align:right; }
.t select.mini{ border:1px solid var(--line); border-radius:6px; padding:3px 4px; background:var(--surface); max-width:140px; }
.rowact{ display:flex; gap:0; justify-content:flex-end; white-space:nowrap; }
.indent{ display:inline-block; }
.tog{ border:0; background:none; padding:0 4px 0 0; cursor:pointer; color:var(--muted); width:18px; }
.prog{ display:flex; align-items:center; gap:8px; min-width:120px; }
.prog .track{ flex:1; height:6px; border-radius:4px; background:var(--sunk); overflow:hidden; position:relative; }
.prog .fill{ position:absolute; inset:0 auto 0 0; background:var(--accent); border-radius:4px; }
.prog .plan{ position:absolute; top:-2px; bottom:-2px; width:2px; background:var(--ink); opacity:.55; }
.prog b{ font:600 12.5px var(--cond); min-width:34px; text-align:right; font-variant-numeric:tabular-nums; }
.av{ display:inline-grid; place-items:center; width:24px; height:24px; border-radius:50%; background:var(--sunk); color:var(--ink-2); font:600 11px var(--cond); flex:none; overflow:hidden; }
.av img{ width:100%; height:100%; object-fit:cover; display:block; }
.av.lg{ width:76px; height:76px; font-size:26px; }
.av.side{ width:26px; height:26px; cursor:pointer; }
.avatar-box{ display:flex; gap:16px; align-items:center; margin-bottom:14px; }
.who{ display:inline-flex; align-items:center; gap:7px; white-space:nowrap; }

/* lists */
.list{ list-style:none; margin:0; padding:0; }
.list li{ display:flex; gap:10px; align-items:flex-start; padding:10px 16px; border-bottom:1px solid var(--line-2); }
.list li:last-child{ border-bottom:0; }
.list .grow{ flex:1; min-width:0; }
.list .t1{ font-weight:500; }
.list .t2{ font-size:12.5px; color:var(--muted); }
.flag{ width:4px; align-self:stretch; border-radius:3px; background:var(--line); flex:none; }
.flag.bad{ background:var(--bad); } .flag.warn{ background:var(--warn-bar); } .flag.crit{ background:var(--crit); } .flag.ok{ background:var(--ok); } .flag.info{ background:var(--accent); }

/* portfolio */
.proj-row{ display:grid; grid-template-columns:var(--pcols); gap:14px; align-items:center; padding:14px 16px; border-bottom:1px solid var(--line-2); cursor:pointer; }
.proj-row:last-child{ border-bottom:0; }
.proj-row:hover{ background:var(--surface-2); }
.proj-row .nm{ font-weight:600; font-size:15px; line-height:1.3; }
.proj-row .meta{ font-size:12.5px; color:var(--muted); }
.proj-row .k{ font-size:12px; color:var(--muted); }
.proj-row .k.lbl{ display:none; }
.panel{ --pcols:minmax(220px,2.4fr) minmax(140px,1.4fr) minmax(64px,.7fr) minmax(64px,.7fr) minmax(120px,1.1fr) minmax(96px,.9fr) 132px; }
.proj-row .v{ font:600 17px var(--cond); font-variant-numeric:tabular-nums; }
.proj-head{ display:grid; grid-template-columns:var(--pcols); gap:14px; padding:9px 16px; font:500 12.5px var(--cond); color:var(--muted); border-bottom:1px solid var(--line); background:var(--surface-2); border-radius:10px 10px 0 0; }

/* gantt */
.gantt-wrap{ overflow:auto; max-height:calc(100vh - 260px); min-height:300px; display:flex; position:relative; background:var(--surface); border-radius:0 0 10px 10px; }
.g-labels{ position:sticky; left:0; z-index:3; background:var(--surface); border-right:1px solid var(--line); flex:none; width:max-content; }
.g-resizer{ position:absolute; top:0; right:-5px; width:10px; height:100%; cursor:col-resize; z-index:6; touch-action:none; }
.g-resizer::after{ content:''; position:absolute; top:0; bottom:0; left:4px; width:2px; background:transparent; transition:background .15s; }
.g-resizer:hover::after,.g-resizer:focus-visible::after,.g-resizer.drag::after{ background:var(--accent); }
.g-resizer:focus-visible{ outline:none; }
body.col-resizing{ cursor:col-resize; user-select:none; }
.g-labels .gh{ position:sticky; top:0; z-index:4; height:46px; background:var(--surface-2); border-bottom:1px solid var(--line); display:flex; align-items:flex-end; padding:0 10px 7px; font:500 12.5px var(--cond); color:var(--muted); }
.g-row{ height:32px; display:flex; align-items:center; gap:4px; padding:0 8px; border-bottom:1px solid var(--line-2); white-space:nowrap; overflow:hidden; font-size:13px; cursor:pointer; }
.g-row:hover{ background:var(--surface-2); }
.g-row.par{ font-weight:600; }
.g-row .wbs{ font:500 12px var(--cond); color:var(--muted); min-width:30px; }
.g-row .nm{ overflow:hidden; text-overflow:ellipsis; }
.g-row.crit .nm{ color:var(--crit); }
.g-chart{ flex:none; position:relative; }
.g-chart .ghead{ position:sticky; top:0; z-index:2; background:var(--surface-2); border-bottom:1px solid var(--line); display:block; }
.g-chart svg{ display:block; }
.gbar{ cursor:pointer; }
/* kolom tabel Gantt (lebar bisa digeser per kolom) */
.g-labels .gh, .g-labels .g-row{ padding:0; gap:0; }
.g-labels .gc{ flex:none; position:relative; height:100%; display:flex; align-items:center; overflow:hidden; white-space:nowrap; padding:0 8px; box-sizing:border-box; }
.g-labels .gh .gc{ align-items:flex-end; padding-bottom:7px; overflow:visible; }
.g-labels .g-row .gc + .gc{ border-left:1px solid var(--line-2); }
.g-labels .gc-wbs{ width:var(--gc-wbs, 56px); } .g-labels .gc-nm{ width:var(--gc-nm, 260px); gap:4px; }
.g-labels .gc-s{ width:var(--gc-s, 96px); } .g-labels .gc-e{ width:var(--gc-e, 96px); } .g-labels .gc-d{ width:var(--gc-d, 70px); justify-content:flex-end; }
.g-labels .gc-p{ width:var(--gc-p, 96px); gap:6px; }
.g-labels .gc-bs{ width:var(--gc-bs, 104px); } .g-labels .gc-be{ width:var(--gc-be, 112px); } .g-labels .g-row .gc-bs, .g-labels .g-row .gc-be{ color:var(--muted); font-size:12.5px; font-variant-numeric:tabular-nums; } .g-labels .g-row .gc-be.slip{ color:var(--bad); font-weight:600; }
.g-labels.hide-wbs .gc-wbs, .g-labels.hide-pic .gc-pic, .g-labels.hide-s .gc-s, .g-labels.hide-e .gc-e, .g-labels.hide-bs .gc-bs, .g-labels.hide-be .gc-be, .g-labels.hide-d .gc-d, .g-labels.hide-p .gc-p{ display:none !important; }
.t td.bl{ color:var(--ink-2); } .t td.slip{ color:var(--bad); } .t td.slip small{ font-weight:600; }
.col-pop{ width:240px; } .col-list{ display:flex; flex-direction:column; padding:6px 12px 10px; overflow:auto; } .col-list label{ display:flex; gap:8px; align-items:center; padding:5px 0; font-size:13px; cursor:pointer; } .col-list label.muted{ cursor:default; }
.g-labels .gc-pic{ width:var(--gc-pic, 140px); gap:6px; font-size:12.5px; color:var(--ink-2); } .g-labels .gc-pic .av{ width:20px; height:20px; font-size:9.5px; } .g-labels .gc-pic .pn{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.g-labels .gpb{ flex:1; min-width:16px; height:6px; border-radius:3px; background:var(--sunk); overflow:hidden; } .g-labels .gpb i{ display:block; height:100%; background:var(--accent); }
.g-labels .gc-p b{ font:600 12px var(--cond); font-variant-numeric:tabular-nums; min-width:32px; text-align:right; color:var(--ink-2); }
.g-labels .g-row .gc-s, .g-labels .g-row .gc-e, .g-labels .g-row .gc-d{ font-variant-numeric:tabular-nums; color:var(--ink-2); font-size:12.5px; }
.g-labels .g-row.par .gc-s, .g-labels .g-row.par .gc-e, .g-labels .g-row.par .gc-d{ color:var(--ink); }
.gc-rs{ position:absolute; top:0; right:-5px; width:10px; height:100%; cursor:col-resize; z-index:5; touch-action:none; }
.gc-rs::after{ content:''; position:absolute; top:6px; bottom:6px; left:4px; width:2px; border-radius:1px; background:var(--line); }
.gc-rs:hover::after, .gc-rs.drag::after{ background:var(--accent); top:0; bottom:0; }
/* geser bar, ubah durasi, tarik link */
.gbody [data-drag="bar"]{ cursor:grab; touch-action:none; }
.gbody [data-drag="bar"] .g-rsz{ cursor:ew-resize; }
.gbody .g-lh{ fill:var(--surface); stroke:var(--accent); stroke-width:1.5; opacity:0; cursor:crosshair; transition:opacity .12s; touch-action:none; }
.gbody [data-drag="bar"]:hover .g-lh, .gbody.linking .g-lh{ opacity:1; }
.gbody .g-lhit{ cursor:pointer; pointer-events:stroke; }
.gbody .g-lhit:hover + .g-lvis, .gbody .g-lvis.hl{ stroke-width:2.4; opacity:1; }
.gbody.dragging, .gbody.dragging *{ cursor:grabbing !important; }
.gbody .g-target > rect:first-child, .gbody .g-target > path:first-child{ stroke:var(--accent); stroke-width:2; }
#gtip{ position:fixed; z-index:60; pointer-events:none; background:var(--ink); color:var(--surface); font-size:12px; padding:5px 8px; border-radius:6px; white-space:nowrap; box-shadow:0 4px 14px rgba(0,0,0,.18); }
.legend{ display:flex; gap:14px; flex-wrap:wrap; font-size:12.5px; color:var(--muted); align-items:center; }
.legend i{ display:inline-block; width:18px; height:8px; border-radius:2px; vertical-align:middle; margin-right:5px; }

/* kanban */
.kb{ display:grid; grid-template-columns:repeat(5,minmax(240px,1fr)); gap:12px; overflow-x:auto; padding-bottom:6px; align-items:start; }
.kcol{ background:var(--sunk); border:1px solid var(--line-2); border-radius:10px; min-height:200px; display:flex; flex-direction:column; }
.kcol.over{ outline:2px dashed var(--accent); outline-offset:-4px; }
.kcol-h{ display:flex; align-items:center; gap:8px; padding:10px 12px; font-weight:600; }
.kcol-h .n{ font:500 12.5px var(--cond); color:var(--muted); margin-left:auto; }
.kcards{ display:flex; flex-direction:column; gap:8px; padding:0 8px 10px; }
.kcard{ background:var(--surface); border:1px solid var(--line); border-radius:8px; padding:10px 11px; cursor:grab; box-shadow:var(--shadow); }
.kcard.crit{ border-left:3px solid var(--crit); }
.kcard .t1{ font-weight:500; line-height:1.35; margin:2px 0 8px; }
.kcard .row{ display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--muted); }
.kcard .row .sp{ flex:1; }

/* calendar */
.cal{ display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); border-top:1px solid var(--line-2); }
.cal .dh{ padding:8px; font:500 12.5px var(--cond); color:var(--muted); border-bottom:1px solid var(--line-2); background:var(--surface-2); }
.cal .dc{ min-height:104px; border-right:1px solid var(--line-2); border-bottom:1px solid var(--line-2); padding:5px 6px; font-size:12px; overflow:hidden; }
.cal .dc:nth-child(7n){ border-right:0; }
.cal .dc.out{ background:var(--sunk); color:var(--muted); }
.cal .dc.today .dn{ background:var(--accent); color:var(--on-accent); border-radius:10px; padding:0 6px; }
.cal .dn{ font:600 12.5px var(--cond); display:inline-block; margin-bottom:3px; }
.ev{ display:block; padding:1px 5px; border-radius:4px; margin-bottom:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; background:var(--accent-soft); color:var(--ink); cursor:pointer; border:0; width:100%; text-align:left; font-size:11.5px; }
.ev.crit{ background:var(--crit-soft); color:var(--crit); } .ev.warn{ background:var(--warn-soft); color:var(--warn); } .ev.ok{ background:var(--ok-soft); color:var(--ok); } .ev.bad{ background:var(--bad-soft); color:var(--bad); }

/* risk heatmap */
.heat{ display:grid; grid-template-columns:26px repeat(5,minmax(0,1fr)); gap:4px; align-items:stretch; }
.heat .hc{ aspect-ratio:1.5/1; border-radius:6px; display:grid; place-items:center; font:600 16px var(--cond); border:2px solid transparent; cursor:pointer; color:rgba(0,0,0,.72); }
.heat .hc.sel{ border-color:var(--ink); }
.heat .hc.z{ color:rgba(0,0,0,.25); font-weight:500; font-size:13px; }
.heat .ax{ font:500 12px var(--cond); color:var(--muted); display:grid; place-items:center; }
.h1c{ background:#BFE3C6; } .h2c{ background:#E7EBA6; } .h3c{ background:#F6CE86; } .h4c{ background:#F29C76; } .h5c{ background:#E5675E; }
.sc{ display:inline-grid; place-items:center; min-width:30px; padding:1px 6px; border-radius:6px; font:600 13px var(--cond); color:rgba(0,0,0,.75); }

/* s-curve */
.chart svg{ width:100%; height:auto; display:block; overflow:visible; }
.chart text{ font:500 11px var(--cond); fill:var(--muted); }

/* copilot */
.chat{ display:flex; flex-direction:column; height:min(70vh,720px); }
.msgs{ flex:1; overflow:auto; padding:16px; display:flex; flex-direction:column; gap:12px; }
.msg{ max-width:min(92%,760px); padding:10px 14px; border-radius:10px; line-height:1.55; }
.msg.u{ align-self:flex-end; background:var(--ink); color:var(--surface); border-bottom-right-radius:3px; }
.msg.a{ align-self:flex-start; background:var(--surface-2); border:1px solid var(--line-2); border-bottom-left-radius:3px; }
.msg.a h4{ margin:10px 0 4px; font-size:14px; } .msg.a h4:first-child{ margin-top:0; }
.msg.a ul,.msg.a ol{ margin:4px 0; padding-left:20px; } .msg.a p{ margin:4px 0; }
.msg .src{ display:flex; gap:6px; margin-top:8px; align-items:center; font-size:12px; color:var(--muted); }
.chips{ display:flex; gap:6px; flex-wrap:wrap; padding:10px 16px; border-top:1px solid var(--line-2); }
.chip{ border:1px solid var(--line); background:var(--surface); border-radius:16px; padding:4px 11px; font-size:13px; cursor:pointer; color:var(--ink-2); }
.chip:hover{ border-color:var(--accent); color:var(--ink); }
.composer{ display:flex; gap:8px; padding:10px 16px 14px; border-top:1px solid var(--line-2); }
.composer textarea{ flex:1; resize:none; border:1px solid var(--line); border-radius:8px; padding:8px 10px; min-height:42px; max-height:120px; background:var(--surface); }
.mic.on{ background:var(--crit-soft); color:var(--crit); border-color:var(--crit); }

/* modal */
.modal-bg{ position:fixed; inset:0; background:rgba(10,18,28,.45); z-index:80; display:grid; place-items:center; padding:20px; }
.modal{ background:var(--surface); border-radius:12px; width:min(680px,100%); max-height:calc(100vh - 40px); display:flex; flex-direction:column; box-shadow:0 20px 60px -20px rgba(0,0,0,.5); border:1px solid var(--line); }
.modal.wide{ width:min(920px,100%); }
.modal-h{ display:flex; align-items:center; padding:14px 18px; border-bottom:1px solid var(--line-2); gap:10px; }
.modal-h h3{ margin:0; font-size:17px; font-weight:600; }
.modal-h .ib{ margin-left:auto; }
.modal-b{ padding:16px 18px; overflow:auto; }
.modal-f{ display:flex; gap:8px; padding:12px 18px; border-top:1px solid var(--line-2); align-items:center; }
.modal-f .sp{ flex:1; }
.form{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 14px; }
.form .full{ grid-column:1/-1; }
.form label{ display:flex; flex-direction:column; gap:4px; font-size:13px; font-weight:500; color:var(--ink-2); }
.form label .hint{ font-weight:400; color:var(--muted); font-size:12px; }
.form input:not([type=checkbox]):not([type=range]),.form select,.form textarea{ border:1px solid var(--line); background:var(--surface); border-radius:7px; padding:8px 10px; font-weight:400; color:var(--ink); width:100%; }
.form textarea{ min-height:84px; resize:vertical; }
.form .check{ flex-direction:row; align-items:center; gap:8px; }
.checks{ border:1px solid var(--line); border-radius:7px; max-height:170px; overflow:auto; padding:6px 8px; font-weight:400; }
.checks label{ flex-direction:row; align-items:center; gap:8px; font-weight:400; padding:2px 0; color:var(--ink); }
.rangewrap{ display:flex; align-items:center; gap:10px; } .rangewrap input{ flex:1; } .rangewrap output{ font:600 14px var(--cond); min-width:42px; text-align:right; }

/* toast */
.toasts{ pointer-events:none; position:fixed; right:18px; bottom:calc(18px + env(safe-area-inset-bottom,0px)); z-index:90; display:flex; flex-direction:column; gap:8px; }
.mention-pop{ position:fixed; z-index:95; min-width:240px; max-width:340px; background:var(--surface); border:1px solid var(--line); border-radius:8px; box-shadow:0 12px 30px -12px rgba(0,0,0,.35); padding:4px; display:flex; flex-direction:column; }
.mp-item{ display:flex; align-items:center; gap:8px; padding:6px 8px; border:0; background:none; border-radius:6px; text-align:left; cursor:pointer; color:var(--ink); font:inherit; }
.mp-item.on, .mp-item:hover{ background:var(--surface-2); } .mp-item > span:not(.av){ display:flex; flex-direction:column; flex:1; min-width:0; } .mp-item > .av{ flex:none; width:26px; height:26px; } .mp-item b{ font-weight:600; font-size:13px; } .mp-item small{ font-size:11.5px; color:var(--muted); } .mp-role{ margin-left:auto; flex:none; }
.mention-pop .mp-h{ font-size:11.5px; color:var(--muted); padding:4px 8px 2px; }
.toast .toast-act{ margin-left:12px; background:none; border:1px solid currentColor; color:inherit; border-radius:6px; padding:2px 8px; font:600 12.5px var(--font); cursor:pointer; }
.notif-btn{ position:relative; }
.nbadge{ position:absolute; top:-3px; right:-5px; min-width:17px; height:17px; padding:0 4px; border-radius:9px; background:var(--bad); color:var(--surface); font:600 10.5px/17px var(--cond); text-align:center; pointer-events:none; }
.notif-pop{ position:fixed; z-index:80; width:min(390px, calc(100vw - 24px)); max-height:min(540px, 72vh); display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--line); border-radius:10px; box-shadow:0 18px 40px -16px rgba(0,0,0,.35); }
.np-h{ display:flex; align-items:center; gap:6px; padding:10px 12px; border-bottom:1px solid var(--line-2); flex-wrap:wrap; } .np-h b{ flex:1; font-size:14px; }
.np-b{ overflow:auto; }
.np-item{ display:grid; grid-template-columns:10px 1fr; gap:2px 8px; width:100%; text-align:left; background:none; border:0; border-bottom:1px solid var(--line-2); padding:10px 12px; cursor:pointer; color:var(--ink); font:inherit; }
.np-item:hover, .np-item:focus-visible{ background:var(--surface-2); outline:none; }
.np-dot{ grid-row:1 / span 3; width:8px; height:8px; border-radius:50%; margin-top:6px; }
.np-item.unread .np-dot{ background:var(--accent); } .np-item.unread .np-t{ font-weight:600; }
.np-t{ font-size:13px; } .np-s{ font-size:12.5px; color:var(--ink-2); grid-column:2; overflow-wrap:anywhere; } .np-m{ font-size:11.5px; color:var(--muted); grid-column:2; }
.toast{ pointer-events:none; background:var(--ink); color:var(--surface); padding:10px 14px; border-radius:8px; box-shadow:0 10px 30px -10px rgba(0,0,0,.5); max-width:360px; font-size:13.5px; }
.toast.bad{ background:var(--bad); color:#fff; }

.notice{ padding:10px 14px; border-radius:8px; background:var(--warn-soft); color:var(--warn); margin-bottom:14px; font-size:13.5px; }
.notice.info{ background:var(--accent-soft); color:var(--ink); }
.tabs{ display:flex; gap:2px; border-bottom:1px solid var(--line); margin-bottom:16px; overflow-x:auto; }
.tabs button{ border:0; background:none; padding:9px 14px; cursor:pointer; color:var(--muted); font-weight:500; border-bottom:2px solid transparent; margin-bottom:-1px; white-space:nowrap; }
.tabs button[aria-selected="true"]{ color:var(--ink); border-bottom-color:var(--accent); }
.loading{ display:grid; place-items:center; min-height:50vh; color:var(--muted); text-align:center; }
.bars .row{ display:grid; grid-template-columns:120px 1fr 110px; gap:10px; align-items:center; padding:5px 0; font-size:13px; }
.bars .track{ height:10px; background:var(--sunk); border-radius:5px; overflow:hidden; }
.bars .track i{ display:block; height:100%; background:var(--accent); border-radius:5px; }
.heatgrid{ display:grid; gap:3px; font-size:12px; }
.heatgrid .hcell{ height:28px; border-radius:4px; display:grid; place-items:center; font:600 12px var(--cond); }
.kv{ display:grid; grid-template-columns:auto 1fr; gap:6px 14px; font-size:13.5px; }
.kv dt{ color:var(--muted); } .kv dd{ margin:0; }
details.help summary{ cursor:pointer; color:var(--muted); font-size:13px; }

/* login */
.app.auth{ grid-template-columns:1fr; } .app.auth .side,.app.auth .top,.app.auth .scrim{ display:none !important; }
.login-wrap{ min-height:80vh; display:grid; place-items:center; }
.login{ width:min(380px,100%); padding:28px; }

/* quality gate */
.gates{ display:grid; grid-template-columns:repeat(5,minmax(150px,1fr)); gap:10px; overflow-x:auto; padding-bottom:4px; }
.gate{ text-align:left; display:flex; flex-direction:column; gap:5px; padding:12px; border:1px solid var(--line); border-top:4px solid var(--line); border-radius:10px; background:var(--surface); cursor:pointer; box-shadow:var(--shadow); color:var(--ink); }
.gate.ok{ border-top-color:var(--ok); } .gate.info{ border-top-color:var(--accent); } .gate.warn{ border-top-color:var(--warn-bar); } .gate.bad{ border-top-color:var(--bad); }
.gate .gk{ font:600 16px var(--cond); } .gate .gk small{ font:500 12px var(--font); color:var(--muted); margin-left:4px; }
.gate .gt{ font-weight:500; font-size:13px; line-height:1.3; min-height:2.6em; }
.gate .pill{ align-self:flex-start; }
.gbar{ height:5px; border-radius:3px; background:var(--sunk); overflow:hidden; display:block; } .gbar i{ display:block; height:100%; background:var(--accent); }
.gates.compact .gate{ padding:9px; } .gates.compact .gt{ min-height:0; }
.crit-list li{ align-items:flex-start; } .crit-list input[type=checkbox]{ margin-top:4px; width:17px; height:17px; }
.crit-row{ display:flex; gap:8px; align-items:flex-start; padding:8px 0; border-bottom:1px solid var(--line-2); }
.crit-row .cr-done{ margin-top:10px; width:17px; height:17px; }
.crit-main{ flex:1; display:grid; grid-template-columns:1fr; gap:5px; }
.crit-main input,.crit-main select{ border:1px solid var(--line); border-radius:6px; padding:6px 8px; background:var(--surface); color:var(--ink); font:inherit; }
.crit-main .cr-text{ font-weight:500; }
/* intake */
.wsjf{ display:inline-block; min-width:48px; text-align:center; padding:2px 8px; border-radius:6px; background:var(--accent-soft); font:600 14px var(--cond); }
/* laporan */
.report{ padding:22px 24px; }
.rep-head{ display:flex; gap:16px; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; margin-bottom:12px; }
.rep-head h2{ margin:2px 0; font-size:21px; }
.rag{ display:flex; flex-direction:column; gap:2px; padding:10px 12px; border-radius:8px; border:1px solid var(--line); border-left:5px solid var(--line); background:var(--surface); min-width:120px; }
.rag b{ font:600 17px var(--cond); } .rag select{ margin-top:4px; border:1px solid var(--line); border-radius:6px; padding:3px 4px; background:var(--surface); color:var(--ink); font-size:12px; }
.rag.ok{ border-left-color:var(--ok); } .rag.ok b{ color:var(--ok); } .rag.warn{ border-left-color:var(--warn-bar); } .rag.warn b{ color:var(--warn); } .rag.bad{ border-left-color:var(--bad); } .rag.bad b{ color:var(--bad); }
.rag.big{ min-width:170px; } .rag.big b{ font-size:22px; }
.rag-row{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
.rep-sec{ margin:14px 0; } .rep-sec h3{ font-size:14.5px; margin:0 0 6px; }
.rep-h{ display:flex; align-items:center; gap:8px; justify-content:space-between; }
.rep-ta{ width:100%; border:1px solid var(--line); border-radius:8px; padding:8px 10px; background:var(--surface-2); color:var(--ink); font:inherit; resize:vertical; }
.rep-print{ display:none; } .report .chart svg{ max-height:260px; } .rep-print ul{ margin:4px 0; padding-left:20px; } .rep-print p{ margin:3px 0; }
/* komentar & lampiran */
.task-extra{ margin-top:18px; border-top:1px solid var(--line-2); padding-top:6px; }
.task-extra h4{ margin:12px 0 6px; font-size:14px; }
.comments,.attach{ list-style:none; margin:0; padding:0; }
.comments li{ display:flex; gap:10px; padding:8px 0; border-bottom:1px solid var(--line-2); } .comments li:last-child{ border-bottom:0; }
.attach li{ display:flex; gap:8px; align-items:center; padding:5px 0; flex-wrap:wrap; } .attach li svg{ width:16px; height:16px; color:var(--muted); }
.comment-new{ display:flex; gap:8px; align-items:flex-end; margin-top:8px; } .comment-new textarea{ flex:1; border:1px solid var(--line); border-radius:7px; padding:7px 9px; background:var(--surface); color:var(--ink); font:inherit; resize:vertical; }
.mention{ background:var(--accent-soft); color:var(--accent); border-radius:4px; padding:0 3px; font-weight:500; }
.badges{ display:inline-flex; gap:6px; margin-left:6px; color:var(--muted); font-size:12px; white-space:nowrap; vertical-align:middle; }
/* akses & audit */
.acc-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:6px 14px; }
.acc-grid label{ display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:13px; font-weight:400 !important; flex-direction:row !important; }
.acc-grid select{ width:auto !important; padding:4px 6px !important; }
.t.diff{ margin-top:6px; font-size:12.5px; } .t.diff td{ padding:4px 8px; }
@media (max-width: 900px){ .rag-row{ grid-template-columns:repeat(2,minmax(0,1fr)); } .gates{ grid-template-columns:repeat(5,minmax(160px,1fr)); } }
@media (max-width: 1100px){ .g-main,.g3{ grid-template-columns:1fr; } }
@media (max-width: 900px){
  .app{ grid-template-columns:1fr; }
  .side{ position:fixed; top:0; bottom:0; left:0; width:min(290px,86vw); z-index:70; transform:translateX(-102%); transition:transform .2s ease; padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px); }
  .side.open{ transform:none; box-shadow:0 0 40px rgba(0,0,0,.35); }
  .scrim.open{ display:block; position:fixed; inset:0; background:rgba(10,18,28,.4); z-index:65; }
  .top{ padding:8px 12px; gap:8px; }
  .top .menu-btn{ display:inline-grid; }
  #view{ padding:16px 12px 48px; }
  .g2{ grid-template-columns:1fr; }
  .proj-head{ display:none; }
  .proj-row{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 14px; }
  .proj-row > :first-child{ grid-column:1/-1; }
  .proj-row > :last-child{ grid-column:1/-1; }
  .proj-row .k.lbl{ display:block; }
  .g-labels .gc-s, .g-labels .gc-e, .g-labels .gc-d, .g-labels .gc-p, .g-labels .gc-pic{ display:none; }
  .g-labels{ --gc-nm:150px; --gc-wbs:44px; }
  .form{ grid-template-columns:1fr; }
  .modal-bg{ padding:0; place-items:end stretch; }
  .modal,.modal.wide{ width:100%; max-height:92vh; border-radius:14px 14px 0 0; padding-bottom:env(safe-area-inset-bottom,0px); }
  .cal .dc{ min-height:64px; padding:3px; } .cal .ev{ font-size:0; height:6px; padding:0; margin-bottom:2px; }
  .vh h1{ font-size:20px; }
  .band dd{ font-size:19px; }
  .bars .row{ grid-template-columns:90px 1fr 90px; }
  .vh .actions{ margin-left:0; width:100%; flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; padding-bottom:4px; scrollbar-width:thin; }
  .vh .actions > *{ flex:none; }
  .vh .actions .btn{ padding:6px 10px; font-size:13px; }
  .hide-hp{ display:none !important; }
  .notice.clamp{ display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; cursor:pointer; }
  .notice.clamp.open{ display:block; }
}
@media (prefers-reduced-motion: reduce){ *{ animation:none !important; transition:none !important; } }
@media print{
  @page{ size:A4; margin:12mm; }
  .side,.top,.scrim,.actions,.no-print,.toasts,.notice{ display:none !important; }
  html,body{ height:auto; background:#fff; } .app{ display:block; height:auto; } .main{ display:block; } #view{ overflow:visible; padding:0; }
  .report{ border:0; box-shadow:none; padding:0; } .rep-print{ display:block; } .panel{ break-inside:avoid; box-shadow:none; }
  .rep-sec{ break-inside:avoid; } .band{ box-shadow:none; }
}

/* Portofolio: grup per proyek di Perlu perhatian / Tenggat */
.pf-grp{border-top:1px solid var(--line)}
.pf-grp:first-of-type{border-top:0}
.pf-grp>summary{display:flex;align-items:center;gap:8px;padding:8px 2px;cursor:pointer;font-size:13px;list-style:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pf-grp>summary::-webkit-details-marker{display:none}
.pf-grp>summary::before{content:'▸';color:var(--muted);transition:transform .15s}
.pf-grp[open]>summary::before{transform:rotate(90deg)}
.pf-grp>summary .muted{overflow:hidden;text-overflow:ellipsis}
.pf-n{margin-left:auto;font-size:11px;padding:1px 8px;border-radius:10px;background:var(--line);flex:none}
.pf-n.bad{background:var(--bad);color:#fff}
.pf-grp>.list{margin:0 0 8px 14px}

/* To-do pribadi */
.pt-add{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; padding:12px; margin-bottom:16px; }
.pt-add #pt-title{ flex:1 1 280px; min-width:0; }
.pt-add .pt-q{ margin-left:auto; width:180px; }
.pt-sec{ padding:4px 0 8px; }
.pt-sec + .pt-sec{ border-top:1px solid var(--line-2); padding-top:10px; }
.pt-sec h3.sec{ font-size:13px; margin:4px 2px; }
.pt-sec h3.sec.bad{ color:var(--bad); }
.pt-row{ display:flex; align-items:center; gap:10px; }
.pt-row > input[type=checkbox]{ width:18px; height:18px; flex:none; cursor:pointer; }
.pt-row.done .t1, .pt-strike{ text-decoration:line-through; color:var(--muted); }
.pt-row .pt-due{ min-width:92px; text-align:right; }
.pt-note{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kcard .pt-note{ white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; margin-bottom:2px; }
.pt-kb{ grid-template-columns:repeat(3,minmax(240px,1fr)); }
.kcard.pt-late{ border-left:3px solid var(--bad); }
@media (max-width:900px){ .pt-add .pt-q{ margin-left:0; flex:1 1 100%; width:auto; } .pt-row .pill{ display:none; } .pt-row .pt-due{ min-width:0; } }

.pt-tag{ display:inline-flex; align-items:center; gap:3px; font:500 11.5px var(--cond); padding:1px 7px; border-radius:5px; background:var(--accent-soft, var(--sunk)); color:var(--accent, var(--ink-2)); vertical-align:1px; white-space:nowrap; }
.pt-tag svg{ width:12px; height:12px; }
.pt-tag.own{ background:var(--sunk); color:var(--muted); }
.pt-filter{ display:flex; gap:8px; margin-left:auto; }
.pt-add .pt-filter .pt-q{ margin-left:0; }
#pt-proj{ max-width:220px; }
@media (max-width:900px){ .pt-filter{ margin-left:0; flex:1 1 100%; } .pt-filter > *{ flex:1; } #pt-proj{ max-width:none; flex:1 1 140px; } }

/* penanda tulisan yang belum terkirim ke server */
.saving{ position:fixed; left:16px; bottom:16px; z-index:70; background:var(--ink); color:var(--surface); font-size:12.5px; padding:7px 12px; border-radius:8px; box-shadow:0 4px 14px rgba(0,0,0,.2); pointer-events:none; max-width:calc(100vw - 32px); }

/* peringatan keluar otomatis */
.idle-warn{ position:fixed; left:50%; top:16px; transform:translateX(-50%); z-index:90; display:flex; gap:14px; align-items:center; background:var(--surface); color:var(--ink); border:1px solid var(--warn); border-left:4px solid var(--warn); border-radius:10px; padding:10px 14px; box-shadow:0 8px 24px rgba(0,0,0,.18); max-width:calc(100vw - 32px); }

/* isian hasil hitung otomatis (mis. Nilai EMV) */
.form input.calc{ background:var(--sunk); font-weight:600; color:var(--ink); cursor:default; }

/* WBS: seret & lepas */
.wgrip{ display:inline-flex; align-items:center; justify-content:center; width:16px; flex:none; margin-right:2px; color:var(--muted); cursor:grab; opacity:.35; user-select:none; font-size:14px; line-height:1; }
tr:hover .wgrip{ opacity:1; }
.wgrip:active{ cursor:grabbing; }
tr.wdragging{ opacity:.45; }
table.wbs-dnd tr.wdrop-before > td{ box-shadow:inset 0 2px 0 var(--accent); }
table.wbs-dnd tr.wdrop-after > td{ box-shadow:inset 0 -2px 0 var(--accent); }
table.wbs-dnd tr.wdrop-inside > td{ background:var(--accent-soft); }
@media (hover:none){ .wgrip{ display:none; } }
