/* Krishva HR v1.3 — dark theme (Nov 2026). Loaded after keka.css. html[data-theme=dark] is set by the head script
   (saved choice in localStorage / user setting, else the device's prefers-color-scheme). Part 1: tokens. Part 2: generated
   overrides for hard-coded light colours in the older stylesheets. Part 3: hand-tuned Keka-style pieces. */
html[data-theme=dark]{
  color-scheme:dark;
  --kk-side:#0b0d19;--kk-side-2:#1c1f3d;--kk-side-ink:#b9bce0;--kk-pri:#9d94ff;--kk-pri-2:#b3abff;--kk-pri-fill:#5b4fd6;--kk-pri-fill-2:#6a5ff0;--kk-pri-soft:#24224a;--kk-pri-line:#3d3a72;
  --kk-bg:#0f1220;--kk-card:#171b2e;--kk-card-2:#1c2136;--kk-card-3:#232944;--kk-line:#262c47;--kk-line-2:#323a5c;--kk-text:#e6e8f5;--kk-muted:#a3a8c3;--kk-faint:#8a90b0;
  --kk-green:#3ccf91;--kk-green-bg:#12342a;--kk-red:#ff7a8b;--kk-red-bg:#3a1a24;--kk-amber:#f2b54a;--kk-amber-bg:#372a12;--kk-blue:#6aa9ff;--kk-blue-bg:#152a4a;
  --kk-shadow:0 1px 2px rgba(0,0,0,.35),0 1px 1px rgba(0,0,0,.2);
  --bg:var(--kk-bg);--bg-2:#141829;--surface:var(--kk-card);--surface-2:var(--kk-card-2);--surface-3:var(--kk-card-3);--sheet:var(--kk-card);--line:var(--kk-line);--line-2:var(--kk-line-2);
  --text:var(--kk-text);--text-2:#cfd2e6;--muted:var(--kk-muted);--faint:var(--kk-faint);
  --accent:var(--kk-pri);--accent-ink:var(--kk-pri-2);--accent-bg:var(--kk-pri-soft);--accent-line:var(--kk-pri-line);--accent-fill:var(--kk-pri-fill);--accent-fill-hover:var(--kk-pri-fill-2);--on-accent:#fff;
  --violet:var(--kk-pri);--pink:var(--kk-pri);--blue:var(--kk-blue);--grad:var(--kk-pri-fill);--grad-soft:var(--kk-pri-soft);
  --ok:var(--kk-green);--ok-bg:var(--kk-green-bg);--warn:#f2b54a;--warn-bg:var(--kk-amber-bg);--bad:var(--kk-red);--bad-bg:var(--kk-red-bg);
  --shadow:var(--kk-shadow);--focus:0 0 0 3px rgba(157,148,255,.35);
}
html[data-theme=dark] body{background-color:var(--kk-bg);color:var(--kk-text)}

/* ---------- part 2: generated from hub/polish/admin/hr/hr2/keka.css (hard-coded light colours → dark) ---------- */
html[data-theme=dark] .todo .ck svg{stroke:#2c3252}
html[data-theme=dark] .hr-back{color:#c594f9}
html[data-theme=dark] .hr-card-head h2 .chip{background-color:#26183f;color:#c594f9}
html[data-theme=dark] .hr-card-head a{color:#c594f9}
html[data-theme=dark] a.hr-stat:hover{border-color:#402673}
html[data-theme=dark] .hr-stat-value{color:#e2e4f2}
html[data-theme=dark] .hr-stat.is-warn .hr-stat-value{color:#f9c094}
html[data-theme=dark] .hr-stat.is-ok .hr-stat-value{color:#94f9dd}
html[data-theme=dark] .punch-btn{background-color:#171b2e;color:#c594f9}
html[data-theme=dark] .punch-btn.out{background-color:#2a3050}
html[data-theme=dark] .hr-list .t{color:#e2e4f2}
html[data-theme=dark] .hr-empty b{color:#e2e4f2}
html[data-theme=dark] .bal .bal-name{color:#e2e4f2}
html[data-theme=dark] .hr-field label{color:#e2e4f2}
html[data-theme=dark] .hr-field input,html[data-theme=dark] .hr-field select,html[data-theme=dark] .hr-field textarea{background-color:#171b2e;color:#e2e4f2}
html[data-theme=dark] .seg-pick span{background-color:#171b2e}
html[data-theme=dark] .seg-pick input:checked+span{background-color:#26183f;color:#c594f9}
html[data-theme=dark] .seg-pick input:focus-visible+span{box-shadow:0 0 0 3px #402673}
html[data-theme=dark] .hr-tabs a{background-color:#171b2e;color:#e2e4f2}
html[data-theme=dark] .kv dd{color:#e2e4f2}
html[data-theme=dark] .cal-d{background-color:#1d2238}
html[data-theme=dark] .cal-d.c-P{background-color:#183f2c;border-color:#2f6a4f}
html[data-theme=dark] .cal-d.c-P i{color:#94f9dd}
html[data-theme=dark] .cal-d.c-HD,html[data-theme=dark] .cal-d.c-MS{background-color:#3f2e18;border-color:#735026}
html[data-theme=dark] .cal-d.c-HD i,html[data-theme=dark] .cal-d.c-MS i{color:#f9c094}
html[data-theme=dark] .cal-d.c-A{background-color:#1d2238;border-color:#732626}
html[data-theme=dark] .cal-d.c-A i{color:#f09e9e}
html[data-theme=dark] .cal-d.c-L{background-color:#26183f;border-color:#422673}
html[data-theme=dark] .cal-d.c-L i{color:#c594f9}
html[data-theme=dark] .cal-d.c-LOP{background-color:#1d2238;border-color:#732626}
html[data-theme=dark] .cal-d.c-LOP i{color:#f09e9e}
html[data-theme=dark] .cal-d.c-H{background-color:#18293f;border-color:#264173}
html[data-theme=dark] .cal-d.c-WO{background-color:#1d2238}
html[data-theme=dark] .cal-d.c-PD{background-color:#171b2e;border:1px dashed #2c3252}
html[data-theme=dark] .cal-d.c-PD i{color:#b4b8d0}
html[data-theme=dark] .reg td.c-PD{color:#b4b8d0;background-color:#1d2238}
html[data-theme=dark] .hr-table-wrap{background-color:#171b2e}
html[data-theme=dark] .hr-table th{background-color:#1d2238}
html[data-theme=dark] .hr-table td{border-top:1px solid #2c3252}
html[data-theme=dark] .hr-table tr.total td{background-color:#1d2238}
html[data-theme=dark] .reg td.c-P{color:#94f9dd}
html[data-theme=dark] .reg td.c-A,html[data-theme=dark] .reg td.c-LOP{color:#f09e9e;background-color:#1d2238}
html[data-theme=dark] .reg td.c-L{color:#c594f9;background-color:#1d2238}
html[data-theme=dark] .reg td.c-HD,html[data-theme=dark] .reg td.c-MS{color:#f9c094}
html[data-theme=dark] .reg td.sticky,html[data-theme=dark] .reg th.sticky{background-color:#171b2e;box-shadow:1px 0 0 #2c3252}
html[data-theme=dark] .m-card{background-color:#171b2e}
html[data-theme=dark] .m-card .meta b{color:#e2e4f2}
html[data-theme=dark] .dir-card{background-color:#171b2e}
html[data-theme=dark] a.dir-card:hover{border-color:#402673}
html[data-theme=dark] .searchbar input,html[data-theme=dark] .searchbar select{background-color:#171b2e}
html[data-theme=dark] .org ul{border-left:2px solid #3c2673}
html[data-theme=dark] .org li li::before{border-top:2px solid #3c2673}
html[data-theme=dark] .org .node{background-color:#171b2e}
html[data-theme=dark] .setup{background-color:#171b2e;border:1px solid #422673}
html[data-theme=dark] .setup-steps li a,html[data-theme=dark] .setup-steps li>span{background-color:#1d2238}
html[data-theme=dark] .setup-steps .n{background-color:#26183f;color:#c594f9}
html[data-theme=dark] .setup-steps .go{color:#c594f9}
html[data-theme=dark] .progress-bar{background-color:#25193e}
html[data-theme=dark] .badge-chip{background-color:#26183f;color:#c594f9}
html[data-theme=dark] .pill-warn{background-color:#3f2e18;color:#f9c794;border-color:#735026}
html[data-theme=dark] .pill-bad{background-color:#3f1818;color:#ef9f9f;border-color:#6e2b2b}
html[data-theme=dark] .pill-ok{background-color:#1d392b;color:#94f9d5;border-color:#36634d}
html[data-theme=dark] .slip-net{background-color:#26183f;border:1px solid #422673}
html[data-theme=dark] .slip-lines li{border-top:1px solid #2c3252}
html[data-theme=dark] .slip-lines li.tot{border-top:2px solid #2c3252}
html[data-theme=dark] .warn-box{background-color:#3f3118;border:1px solid #735026;color:#f9cc94}
html[data-theme=dark] .info-box{background-color:#26183f;border:1px solid #422673;color:#bda3eb}
html[data-theme=dark] .hr2-h3{color:#b4b8d0}
html[data-theme=dark] .hr2-tile{background-color:#171b2e}
html[data-theme=dark] .hr2-tile:hover,html[data-theme=dark] .hr2-tile:focus-visible{box-shadow:0 0 0 3px #472673}
html[data-theme=dark] .hr2-tile-ic{background-color:#26183f}
html[data-theme=dark] .hr2-tile-s{color:#b4b8d0}
html[data-theme=dark] .hr2-prog{background-color:#292333}
html[data-theme=dark] .hr2-inline select,html[data-theme=dark] .hr2-inline input[type=date],html[data-theme=dark] .hr2-inline input[type=text],html[data-theme=dark] .hr2-inline input[type=number]{border:1px solid #2c3252}
html[data-theme=dark] .hr2-task{border-top:1px solid #2c3252}
html[data-theme=dark] .hr2-task.is-done b{color:#b4b8d0}
html[data-theme=dark] .hr2-task .meta{color:#b4b8d0}
html[data-theme=dark] .hr2-tick{border:2px solid #2c3252;background-color:#171b2e}
html[data-theme=dark] .hr2-late{color:#f2a29c}
html[data-theme=dark] .hr2-more summary{color:#c594f9}
html[data-theme=dark] .hr2-file{color:#c594f9}
html[data-theme=dark] .hr2-steps li{color:#b4b8d0}
html[data-theme=dark] .hr2-steps li::before{background-color:#292333;color:#b4b8d0}
html[data-theme=dark] .hr2-steps li.now::before{background-color:#171b2e;color:#c594f9}
html[data-theme=dark] .hr2-steps li.now{color:#e2e4f2}
html[data-theme=dark] .hr2-notes{color:#b4b8d0}
html[data-theme=dark] .slip-lines li.tot{border-top:1px solid #2c3252}
html[data-theme=dark] .hr2-chip{background-color:#26183f;color:#c594f9}
html[data-theme=dark] .hr2-col{background-color:#1d2238;border:1px solid #493e5b}
html[data-theme=dark] .hr2-cand{background-color:#171b2e;border:1px solid #2c3252}
html[data-theme=dark] .hr2-cand span{color:#b4b8d0}
html[data-theme=dark] .hr2-stagebar a{border:1px solid #2c3252;color:#e2e4f2}
html[data-theme=dark] .hr2-bar .track{background-color:#292333}
html[data-theme=dark] .hr2-bar .n{color:#b4b8d0}
html[data-theme=dark] .hr2-big{color:#e2e4f2}
html[data-theme=dark] .hr2-scale span{border:1px solid #2c3252}
html[data-theme=dark] .hr2-scale span small{color:#b4b8d0}
html[data-theme=dark] .hr2-scale input:focus-visible+span{box-shadow:0 0 0 3px #472673}
html[data-theme=dark] .hr2-msg{background-color:#1d2238;border:1px solid #493e5b}
html[data-theme=dark] .hr2-msg.me{background-color:#26183f;border-color:#432673}
html[data-theme=dark] .hr2-msg.internal{background-color:#3f3418;border-color:#705c29}
html[data-theme=dark] .hr2-msg .who{color:#b4b8d0}
html[data-theme=dark] .hr2-sla.bad{color:#f2a29c}
html[data-theme=dark] .hr2-sla.ok{color:#94f9cf}
html[data-theme=dark] body.hr2-public{background-color:#1d2238;color:#e2e4f2}
html[data-theme=dark] .hr2-pub-top{background-color:#171b2e;border-bottom:1px solid #493e5b}
html[data-theme=dark] .hr2-pub-brand{color:#e2e4f2}
html[data-theme=dark] .hr2-pub-foot{color:#b4b8d0}
html[data-theme=dark] .hr2-job b{color:#e2e4f2}
html[data-theme=dark] .hr2-job:hover b{color:#c594f9}
html[data-theme=dark] .hr2-public .hr-card{background-color:#171b2e;border:1px solid #2c3252}
html[data-theme=dark] .hr2-table th,html[data-theme=dark] .hr2-table td{border-bottom:1px solid #483e5b}
html[data-theme=dark] .hr2-table th{background-color:#1d2238}
html[data-theme=dark] .hr2-okr{border:1px solid #493e5b}
html[data-theme=dark] .hr2-kr{border-left:3px solid #472673}
html[data-theme=dark] .hr2-dl dt{color:#b4b8d0}
html[data-theme=dark] .hr2-iv{border-top:1px solid #2c3252}
html[data-theme=dark] .hr2-timeline li{border-left:3px solid #472673}
html[data-theme=dark] .hr2-nps-legend{color:#b4b8d0}
html[data-theme=dark] .hr2-opts .check{border:1px solid #2c3252}
html[data-theme=dark] .hr2-quotes li{background-color:#1d2238}
html[data-theme=dark] .hr2-cols{border:1px solid #493e5b}
@media (max-width:620px){html[data-theme=dark] .hr-card .hr-actions.sticky{background-color:#171b2e;border-top:1px solid #493e5b}}
html[data-theme=dark] .kk-top{background-color:#171b2e}
html[data-theme=dark] .kk-search input{background-color:#1d2238}
html[data-theme=dark] .kk-search input:focus{background-color:#171b2e}
html[data-theme=dark] .kk-top-link:hover{background-color:#252732}
html[data-theme=dark] .kk-bell:hover{background-color:#252732}
html[data-theme=dark] .kk-subnav{background-color:#171b2e}
html[data-theme=dark] .kk .hr-card,html[data-theme=dark] .kk .card,html[data-theme=dark] .kk .hr2-card{background-color:#171b2e}
html[data-theme=dark] .kk .hr-stat{background-color:#171b2e}
html[data-theme=dark] .kk table.table th,html[data-theme=dark] .kk .hr-table th{background-color:#1d2238}
html[data-theme=dark] .kk .pill-warn{color:#f9d594}
html[data-theme=dark] .kk-card{background-color:#171b2e}
html[data-theme=dark] .kk-btn.ghost{background-color:#171b2e}
html[data-theme=dark] .kk-chip{background-color:#232733}
html[data-theme=dark] .kk-chip.warn{color:#f9d594}
html[data-theme=dark] .kk-pills a{background-color:#171b2e}
html[data-theme=dark] .kk-table th{background-color:#1d2238}
html[data-theme=dark] .kk-table td{border-bottom:1px solid #2c3252}
html[data-theme=dark] .kk-table tr:hover td{background-color:#171b2e}
html[data-theme=dark] .kk-tablewrap{background-color:#171b2e}
html[data-theme=dark] .kk-time .kk-btn{background-color:#171b2e;border-color:#2c3252}
html[data-theme=dark] .kk-compose a{background-color:#1d2238}
html[data-theme=dark] .kk-post{border-bottom:1px solid #2c3252}
html[data-theme=dark] .kk-post p{color:#b4b8d0}
html[data-theme=dark] .kk-post-badge{background-color:#3f3218;color:#f9d694}
html[data-theme=dark] .kk-stat-row .who i.t{background-color:#3f2918;color:#f9c494}
html[data-theme=dark] .kk-week span{background-color:#232733}
html[data-theme=dark] .kk-bar{background-color:#232733}
html[data-theme=dark] .kk-vis{background-color:#232733}
html[data-theme=dark] .kk-status.late{color:#f9d194}
html[data-theme=dark] .kk-calendar .d{background-color:#171b2e}
html[data-theme=dark] .kk-calendar .c-H{background-color:#3f182c;color:#f39bbe}
html[data-theme=dark] .kk-calendar .c-WO{background-color:#232733}
html[data-theme=dark] .kk-calendar .c-HD,html[data-theme=dark] .kk-calendar .c-MS{color:#f9d594}
html[data-theme=dark] .kk-ring{background:conic-gradient(var(--c) calc(var(--p)*1%),#232733 0)}
html[data-theme=dark] .kk-ring div{background-color:#171b2e}
html[data-theme=dark] .kk-months a:hover{background-color:#1d2238}
html[data-theme=dark] .kk-slip-net div{background-color:#1d2238}
html[data-theme=dark] .kk-kv{border-bottom:1px dashed #3e455b}
html[data-theme=dark] .kk-emp{background-color:#171b2e}
html[data-theme=dark] .kk-emp-meta{border-top:1px solid #2c3252}
html[data-theme=dark] .kk-filters input,html[data-theme=dark] .kk-filters select{background-color:#171b2e}
html[data-theme=dark] .kk-node{background-color:#171b2e}
html[data-theme=dark] .kk-inbox-nav a:hover{background-color:#1d2238}
html[data-theme=dark] .kk-req{border-bottom:1px solid #2c3252}
html[data-theme=dark] .kk-req-b p{color:#b4b8d0}
@media (max-width:860px){html[data-theme=dark] .kk-tabbar{background-color:#171b2e}}
@media (max-width:860px){html[data-theme=dark] .kk-table.kk-stack tr{border-bottom:1px solid #2c3252}}
html[data-theme=dark] .kk13-list li.is-done .kk13-tick::after{border:solid #2c3252}
/* ---------- part 3: hand-tuned ---------- */
html[data-theme=dark] .kk-top,html[data-theme=dark] .kk-subnav{background:var(--kk-card);border-color:var(--kk-line)}
html[data-theme=dark] .kk-search input{background:var(--kk-card-2);border-color:var(--kk-line);color:var(--kk-text)}
html[data-theme=dark] .kk-search input:focus{background:var(--kk-card)}
html[data-theme=dark] .kk-wordmark img{filter:brightness(0) invert(1)}
html[data-theme=dark] .kk-time .kk-btn{background:#fff;color:#4a3fc2;border-color:#fff}
html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{color-scheme:dark}
html[data-theme=dark] span.avatar,html[data-theme=dark] .avatar{color:#fff}
html[data-theme=dark] .badge-chip{filter:brightness(1.8) saturate(.85)}
html[data-theme=dark] .kk .hr-tabs a{background:none}
html[data-theme=dark] .kk .hr-tabs a[aria-current=page]{background:none;color:var(--kk-pri)}
html[data-theme=dark] .kk-btn.red{background:#d9455a;border-color:#d9455a;color:#fff}
html[data-theme=dark] .kk-cal i,html[data-theme=dark] [class*=cal] i{filter:brightness(1.9)}
html[data-theme=dark] .avatar[style*="239, 237, 253"],html[data-theme=dark] .avatar[style*="#efedfd"]{background:var(--kk-pri-soft)!important;color:var(--kk-pri)!important}

[hidden]{display:none!important}
