/* Dashboards + chart kit v2 (builder B, 2026-11-18). Colours from theme tokens only (themes.js / v20.css), so a theme switch
   re-colours everything live. Pattern themes (html.pat, Monokrom) add hatching to marks. Hover only inside (hover:hover);
   motion is transform / opacity / box-shadow, 120-220 ms, and nothing moves on Motion Low or prefers-reduced-motion. */

.dash { --ck-ink: var(--ink-3); --ck-dim: .32; display: block; padding-bottom: 28px; }
.dash .dk-head { margin-bottom: 14px; }
.dash .dk-key { white-space: nowrap; }
.dk-tabs { margin: 0 0 14px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.dk-tabs::-webkit-scrollbar { display: none; }
.dk-tabs .u-seg { overflow: visible; }
.dk-scope { display: inline-flex; align-items: center; gap: 6px; margin: -4px 0 12px; font-size: 12.5px; color: var(--ink-3); }
.dk-scope .i { width: 14px; height: 14px; }
.dk-scope-t { margin: -4px 0 12px; }
.dk-custom { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; margin: -2px 0 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-m, 12px); background: var(--panel); }
.dk-custom label { display: grid; gap: 4px; font-size: 12px; color: var(--ink-3); }
.dk-custom input { height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-s, 8px); background: var(--panel-sunk); color: var(--ink); font: inherit; }
.dash .dk-grid { margin-top: var(--gap, 16px); }

/* ---------------------------------------------------------------- KPI card (ref1) */
.dash .kc { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "h h" "v sp" "f sp"; align-items: end; gap: 4px 12px; min-width: 0;
  padding: var(--pad, 18px); border: 1px solid var(--line); border-radius: var(--r-card, 16px); background: var(--panel); box-shadow: var(--sh-card); color: var(--ink); text-align: left;
  text-decoration: none; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dash .kc-h { grid-area: h; display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 560; color: var(--ink-2); }
.dash .kc-h > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash .kc-i { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--panel-sunk); color: var(--ink-2); }
.dash .kc-i .i { width: 14px; height: 14px; }
.dash .kc-v { grid-area: v; font-size: clamp(21px, 1.9vw, 28px); font-weight: 680; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash .kc-f { grid-area: f; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-height: 18px; }
.dash .kc-s { font-size: 11.5px; color: var(--ink-3); }
.dash .kc-sp { grid-area: sp; display: flex; align-items: flex-end; gap: 2px; height: 34px; width: 64px; }
.dash .kc-sp i { flex: 1; min-height: 3px; border-radius: 1.5px; background: var(--c-soft, var(--line-2)); transform-origin: bottom; }
.dash .kc-sp i.on { background: var(--c1); }
.dash .kc:focus-visible { outline: 2px solid var(--focus, var(--brand)); outline-offset: 2px; }

/* card head tools */
.dash .dk-more { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 560; color: var(--brand); text-decoration: none; white-space: nowrap; }
.dash .dk-more .i { width: 14px; height: 14px; }
.dash .u-card-x { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.dk-sel select { height: 28px; padding: 0 26px 0 10px; border: 1px solid var(--line); border-radius: var(--r-s, 8px); background: var(--panel-sunk); color: var(--ink); font: inherit; font-size: 12.5px; max-width: 150px; }
.dk-ins { display: flex; align-items: flex-start; gap: 6px; margin: -6px 0 10px; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.dk-ins .i { width: 14px; height: 14px; flex: none; margin-top: 1px; color: var(--ink-3); }
.dk-ins.good .i { color: var(--ok); } .dk-ins.warn .i { color: var(--warn); }

/* "Lainnya" fold */
.dk-fold { margin-top: var(--gap, 16px); }
.dk-fold > summary { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; transition: box-shadow 160ms var(--ease-out, ease-out), transform 160ms var(--ease-out, ease-out); }
.dk-fold > summary::-webkit-details-marker { display: none; }
.dk-fold > summary em { font-style: normal; font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: var(--panel-sunk); color: var(--ink-3); }
.dk-fold > summary .i { width: 14px; height: 14px; transition: transform 200ms var(--ease-out, ease-out); }
.dk-fold[open] > summary .i { transform: rotate(90deg); }
.dk-fold > summary:active { transform: scale(.98); }
.dk-fold > summary:focus-visible { outline: 2px solid var(--focus, var(--brand)); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .dk-fold > summary:hover { box-shadow: var(--sh-card); } }

/* skeleton in the final layout */
.dk-skel .dk-sk { pointer-events: none; }
.dk-skel .kc.dk-sk { min-height: 112px; }
.dk-sk i, .dk-sk b { display: block; border-radius: 8px; background: var(--panel-sunk); }
.dk-sk i { height: 12px; width: 50%; margin-bottom: 12px; }
.dk-sk b { height: 28px; width: 70%; }
.dash-card.dk-sk b { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="low"]) .dk-sk i, :root:not([data-motion="low"]) .dk-sk b { animation: dkPulse 1.4s ease-in-out infinite; }
}
@keyframes dkPulse { 50% { opacity: .55; } }

/* ---------------------------------------------------------------- charts: shared */
.ck { position: relative; margin: 0; min-width: 0; outline: none; border-radius: 10px; }
.ck .ck-c { position: relative; min-height: var(--ckh, 0); width: 100%; }
.ck:not(.on) .ck-c { min-height: var(--ckh, 120px); border-radius: 10px; background: var(--panel-sunk); }
.ck:focus-visible { box-shadow: 0 0 0 2px var(--focus, var(--brand)); }
.ck-s { display: block; overflow: visible; max-width: 100%; }
.ck text { font-family: inherit; }
.ck .ax { fill: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.ck .vl { fill: var(--ink-2); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ck .gr { stroke: var(--c-grid, var(--line)); stroke-width: 1; shape-rendering: crispEdges; }
.ck .gr.div { stroke-dasharray: 2 4; }
.ck .gr.p80 { stroke-dasharray: 3 3; }
.ck .hit { fill: transparent; }
.ck .mk, .ck .sw, .ck .arc, .ck .pt, .ck .sc { transition: opacity 160ms var(--ease-out, ease-out), transform 160ms var(--ease-out, ease-out); }
.ck .s0 { --sc: var(--c1); } .ck .s1 { --sc: var(--c2); } .ck .s2 { --sc: var(--c3); } .ck .s3 { --sc: var(--c4); }
.ck .s4 { --sc: var(--c5); } .ck .s5 { --sc: var(--c6); } .ck .s6 { --sc: var(--c7); } .ck .s7 { --sc: var(--c8); }
.ck .mk { fill: var(--sc); }
.ck .hx { display: none; pointer-events: none; }
html.pat .ck .hx { display: inline; }
html.pat .ck .mk:not(.soft) { fill-opacity: .9; }
.ck .ln { fill: none; stroke: var(--sc); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ck .pt { fill: var(--panel); stroke: var(--sc); stroke-width: 2; }
.ck .pt.last { fill: var(--sc); }
.ck .ar { pointer-events: none; }
.ck .trk { fill: none; stroke: var(--c-track, var(--panel-sunk)); stroke-width: 12; }

/* combo bars: the latest bucket is highlighted (ref1), the hovered one takes over */
.ck-combo .col .mk { opacity: .42; }
.ck-combo .col.hi .mk { opacity: 1; }
.ck-combo.hov .col.hi .mk { opacity: .42; }
.ck-combo .col.hl .mk, .ck-combo.hov .col.hl .mk { opacity: 1; }
.ck-combo .col.hl .hit { fill: var(--hover, rgba(127, 127, 127, .08)); }

/* every other chart: hovered / focused mark stays, the rest dim, the mark pops a little */
.ck.hov .col:not(.hl) .mk, .ck.hov g[data-tip]:not(.hl) > .mk, .ck.hov .arc:not(.hl), .ck.hov .sl:not(.hl), .ck.hov .hc:not(.hl), .ck.hov .sc:not(.hl), .ck.hov .sk:not(.hl), .ck.hov .gb:not(.hl), .ck.hov .mp:not(.hl) { opacity: var(--ck-dim); }
.ck-combo.hov .col:not(.hl) .mk { opacity: .3; }
.ck .arc.hl { stroke-width: 15; }
.ck .sl, .ck .gb, .ck .hc, .ck .sc, .ck .mp { transition: opacity 160ms var(--ease-out, ease-out), transform 160ms var(--ease-out, ease-out); transform-box: fill-box; transform-origin: center; }
.ck .sl.hl, .ck .sc.hl, .ck .mp.hl { transform: scale(1.05); }
.ck .hc.hl { transform: scale(1.18); }
.ck .kf { outline: none; }
.ck .kf > .mk, .ck .kf.hc, .ck .kf.arc { stroke: var(--focus, var(--brand)); stroke-width: 2; }
.ck [data-go] { cursor: pointer; }

/* legend */
.ck-lg { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.ck-lg span { display: inline-flex; align-items: center; gap: 6px; }
.ck-lg b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.ck .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--sc); flex: none; }
.ck .sw.ln { height: 3px; border-radius: 2px; width: 14px; }
html.pat .ck .sw.hxs { background: repeating-linear-gradient(45deg, var(--sc) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1px var(--sc); }

/* tooltip */
.ck-tip { position: fixed; z-index: 90; left: 0; top: 0; max-width: min(280px, calc(100vw - 24px)); padding: 8px 10px; border-radius: 10px; background: var(--ink); color: var(--panel);
  font-size: 12px; line-height: 1.45; box-shadow: var(--sh-pop, 0 8px 24px rgba(0, 0, 0, .2)); pointer-events: none; opacity: 0; transform: translate(-50%, calc(-100% + 4px)) scale(.97); transition: opacity 140ms var(--ease-out, ease-out), transform 140ms var(--ease-out, ease-out); }
.ck-tip.on { opacity: 1; transform: translate(-50%, -100%) scale(1); }
.ck-tip b { font-weight: 650; }
.ck-tip .tr { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ck-tip .tr b { margin-left: auto; padding-left: 10px; font-variant-numeric: tabular-nums; }
.ck-tip .tr i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.ck-tip .tr i:empty:not([class]) , .ck-tip .tr i[class=""] { display: none; }
.ck-tip .k0 { background: var(--c1); } .ck-tip .k1 { background: var(--c2); } .ck-tip .k2 { background: var(--c3); } .ck-tip .k3 { background: var(--c4); } .ck-tip .k4 { background: var(--c5); }

/* funnel (owner ref 2026-11-21): a box per step; muted bands, the chosen step bright; hover lights the box a little */
.ck-funnel .fframe { fill: none; stroke: var(--border, var(--line)); }
.ck-funnel .fdiv { stroke: var(--border, var(--line)); }
.ck-funnel .hit { fill: transparent; }
.ck-funnel .col { cursor: pointer; }
.ck-funnel .fbox { fill: transparent; stroke: transparent; transition: fill 160ms var(--ease-out, ease-out), stroke 160ms var(--ease-out, ease-out); }
.ck-funnel .col.hl .fbox, .ck-funnel .col.kf .fbox { fill: var(--hover, rgba(127, 127, 127, .06)); stroke: var(--border, var(--line)); }
.ck-funnel .fb { fill: var(--c1); transition: fill-opacity 200ms var(--ease-out, ease-out); }
.ck-funnel .fb.l0 { fill-opacity: .12; } .ck-funnel .fb.l1 { fill-opacity: .2; } .ck-funnel .fb.l2 { fill-opacity: .34; }
.ck-funnel .col.on .fb.l0 { fill-opacity: .38; } .ck-funnel .col.on .fb.l1 { fill-opacity: .62; } .ck-funnel .col.on .fb.l2 { fill-opacity: 1; }
.ck-funnel .col.on .fbox { stroke: var(--c1); stroke-opacity: .45; }
.ck-funnel .fv { fill: var(--ink); font-size: 15px; font-weight: 680; font-variant-numeric: tabular-nums; }
.ck-funnel .fl { font-size: 11.5px; fill: var(--ink-2); }
.ck-funnel .col.on .fl { fill: var(--ink); font-weight: 650; }
.ck-funnel .pill rect { fill: var(--panel); stroke: var(--line); }
.ck-funnel .pill text { fill: var(--ink); font-size: 11.5px; font-weight: 680; }
.ck-funnel .col.on .pill rect { stroke: var(--c1); }
.ck-funnel .pill { transition: transform 160ms var(--ease-out, ease-out); }
.ck-funnel .col.hl .pill { transform: translateY(-2px); }
.ck-tip .tip-hint { color: var(--ink-3); font-size: .9em; }
@media (prefers-reduced-motion: reduce) { .ck-funnel .fb, .ck-funnel .fbox, .ck-funnel .pill { transition: none; } }

/* donut */
.dn2 { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dn2-r { position: relative; width: 150px; height: 150px; flex: none; margin: 0 auto; }
.dn2-r .ck-s { width: 150px; height: 150px; }
.dn2 .arc { fill: none; stroke: var(--sc); stroke-width: 12; stroke-linecap: butt; }
.dn2-m { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.dn2-m b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.dn2-m span { font-size: 11.5px; color: var(--ink-3); }
.dn2-l { flex: 1 1 170px; display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.dn2-l li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 42px; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 12.5px; color: var(--ink-2); transition: background 140ms var(--ease-out, ease-out); }
.dn2-l li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dn2-l li b { color: var(--ink); font-weight: 620; font-variant-numeric: tabular-nums; }
.dn2-l li em { font-style: normal; text-align: right; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dn2-l li[data-go]:active { background: var(--press, var(--panel-sunk)); }
@media (hover: hover) and (pointer: fine) { .dn2-l li[data-go]:hover { background: var(--fx-hl, var(--panel-sunk)); } }

/* hatched pie */
.hp2 { display: grid; gap: 12px; }
.hp2.side { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.ck-hpie .mk.soft { fill-opacity: .18; }
.ck-hpie .pz { pointer-events: none; }
html:not(.pat) .ck-hpie .mk.soft { fill-opacity: 1; }
html:not(.pat) .ck-hpie .pz { display: none; }
.ck-hpie .edge { fill: none; stroke: var(--panel); stroke-width: 2.5; }

/* heatmap + calendar */
.ck .hc { stroke: none; }
.ck .h0 { fill: var(--heat-0); background: var(--heat-0); } .ck .h1 { fill: var(--heat-1); background: var(--heat-1); } .ck .h2 { fill: var(--heat-2); background: var(--heat-2); }
.ck .h3 { fill: var(--heat-3); background: var(--heat-3); } .ck .h4 { fill: var(--heat-4); background: var(--heat-4); } .ck .h5 { fill: var(--heat-5); background: var(--heat-5); }
.ck .hc.now { stroke: var(--ink); stroke-width: 1.5; }
.ck-hl { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin-top: 8px; font-size: 11px; color: var(--ink-3); }
.ck-hl i { width: 12px; height: 12px; border-radius: 2.5px; }
.ck-hl span { margin: 0 4px; }

/* dotted progress list (ref2) */
.ckdl { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ckdl li { display: grid; gap: 6px; padding: 4px 6px; margin: 0 -6px; border-radius: 8px; transition: background 140ms var(--ease-out, ease-out); }
.ckdl-t { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink); min-width: 0; }
.ckdl-t > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 560; }
.ckdl-t small { margin-left: 6px; font-weight: 400; color: var(--ink-3); font-size: 11.5px; }
.ckdl-t b { font-weight: 640; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ckdl-t b.bad { color: var(--err); }
.ckdl-d { display: grid; grid-template-columns: repeat(28, 1fr); gap: 3px; }
.ckdl-d i { height: 4px; border-radius: 2px; background: var(--c-track, var(--panel-sunk)); }
.ckdl-d i.on { background: var(--c1); }
.ckdl li[data-go] { cursor: pointer; }
.ckdl li[data-go]:active { background: var(--press, var(--panel-sunk)); }
@media (hover: hover) and (pointer: fine) { .ckdl li[data-go]:hover { background: var(--fx-hl, var(--panel-sunk)); } }

/* leaderboard */
.cklb { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cklb li { display: grid; grid-template-columns: 18px 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13px; }
.cklb-r { color: var(--ink-3); font-size: 12px; font-weight: 600; text-align: center; }
.cklb li:first-child .cklb-r { color: var(--ink); }
.cklb-n { display: grid; gap: 5px; min-width: 0; color: var(--ink); font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cklb-b { display: block; height: 5px; border-radius: 3px; background: var(--c-track, var(--panel-sunk)); overflow: hidden; }
.cklb-b > i { display: block; height: 100%; border-radius: 3px; background: var(--c1); transform-origin: left; }
.cklb li:not(:first-child) .cklb-b > i { background: var(--c-soft, var(--c2)); }
.cklb b { font-variant-numeric: tabular-nums; font-weight: 640; }

/* upcoming list + feed */
.ul2, .fd2 { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ul2 li { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 6px; margin: 0 -6px; border-radius: 10px; transition: background 140ms var(--ease-out, ease-out), transform 140ms var(--ease-out, ease-out); }
.ul2-d { display: grid; justify-items: center; padding: 4px 0; border-radius: 9px; background: var(--panel-sunk); line-height: 1.05; }
.ul2-d b { font-size: 15px; font-weight: 700; color: var(--ink); }
.ul2-d small { font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.ul2-d.late b { color: var(--err); }
.ul2-t { display: grid; min-width: 0; }
.ul2-t b, .ul2-t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ul2-t b { font-size: 13px; font-weight: 580; color: var(--ink); }
.ul2-t small { font-size: 11.5px; color: var(--ink-3); }
.ul2 em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fd2 li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; padding: 6px; margin: 0 -6px; border-radius: 10px; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; transition: background 140ms var(--ease-out, ease-out); }
.fd2 li span { min-width: 0; overflow-wrap: anywhere; }
.fd2 b { color: var(--ink); font-weight: 600; } .fd2 i { font-style: normal; color: var(--ink); }
.fd2 small { display: block; color: var(--ink-3); font-size: 11px; }
.ul2 li[data-go], .fd2 li[data-go] { cursor: pointer; }
.ul2 li[data-go]:active, .fd2 li[data-go]:active { background: var(--press, var(--panel-sunk)); transform: scale(.99); }
@media (hover: hover) and (pointer: fine) { .ul2 li[data-go]:hover, .fd2 li[data-go]:hover { background: var(--fx-hl, var(--panel-sunk)); } }

/* bullet */
.ckbl { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ckbl li { display: grid; grid-template-columns: minmax(90px, 30%) minmax(0, 1fr) 44px; align-items: center; gap: 12px; }
.ckbl-l { display: grid; font-size: 13px; font-weight: 560; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ckbl-l small { font-size: 11.5px; font-weight: 400; color: var(--ink-3); }
.ckbl-b { position: relative; height: 16px; border-radius: 5px; background: var(--c-track, var(--panel-sunk)); }
.ckbl-t { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--c-soft, var(--line-2)); }
.ckbl-v { position: absolute; left: 0; top: 4px; bottom: 4px; border-radius: 3px; background: var(--c2); transform-origin: left; }
.ckbl-v.ok { background: var(--c1); }
.ckbl-k { position: absolute; top: -3px; bottom: -3px; width: 2.5px; margin-left: -1px; border-radius: 2px; background: var(--ink); }
.ckbl b { font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.ckbl b.ok { color: var(--ok); }

/* rings */
.rg2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 12px; }
.rg2-i { display: grid; justify-items: center; gap: 2px; text-align: center; padding: 6px; border-radius: 12px; transition: background 140ms var(--ease-out, ease-out); }
.rg2-i .ck-s { width: 84px; height: 84px; }
.rg2 .arc { fill: none; stroke: var(--sc); stroke-width: 8; stroke-linecap: round; }
.rg2 .trk { stroke-width: 8; }
.rg2 .rg-v { fill: var(--ink); font-size: 15px; font-weight: 700; }
.rg2-i span { font-size: 12.5px; font-weight: 560; color: var(--ink); }
.rg2-i small { font-size: 11px; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .rg2-i[data-go]:hover { background: var(--fx-hl, var(--panel-sunk)); } }

/* gantt */
.ck-gantt .gl { fill: var(--ink); font-size: 12.5px; font-weight: 600; }
.ck-gantt .gbar { fill: var(--c-soft, var(--panel-sunk)); stroke: var(--line); }
.ck-gantt .gfill { fill: var(--c1); fill-opacity: .28; pointer-events: none; }
.ck-gantt .gt { fill: var(--ink); font-size: 11.5px; font-weight: 560; pointer-events: none; }
.ck-gantt .t-done .gbar { fill: var(--c-done, var(--panel-sunk)); }
.ck-gantt .t-late .gbar, .ck-gantt .t-P1 .gbar { stroke: var(--err); stroke-width: 1.5; }
.ck-gantt .t-P2 .gbar { stroke: var(--warn); stroke-width: 1.5; }
.ck-gantt .today { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 3 3; }
.ck-gantt .tpill rect { fill: var(--ink); }
.ck-gantt .tpill text { fill: var(--panel); font-size: 10.5px; font-weight: 650; }
.ck-gantt .avg circle { fill: var(--panel-sunk); stroke: var(--panel); stroke-width: 2; }
.ck-gantt .avg text { fill: var(--ink-2); font-size: 9.5px; font-weight: 700; }
.ck-gantt .gb.hl .gbar { stroke: var(--ink); }

/* waterfall, pareto, scatter, sankey, treemap, map */
.ck .wf-c { stroke: var(--ink-3); stroke-dasharray: 2 3; }
.ck .sc { fill: var(--sc); fill-opacity: .75; stroke: var(--panel); stroke-width: 1.5; }
.ck .sk { fill: none; stroke: var(--sc); stroke-opacity: .32; transition: stroke-opacity 160ms var(--ease-out, ease-out); }
.ck .sk.hl { stroke-opacity: .6; }
.ck .sk-l { fill: var(--ink); font-size: 12px; font-weight: 560; }
.ck .tm-l { fill: var(--ink); font-size: 12px; font-weight: 600; pointer-events: none; }
.ck .tm-v { fill: var(--ink-2); font-size: 11px; pointer-events: none; }
html.pat .ck-treemap .mk { fill-opacity: .35; }
.ck-map .ck-c { min-height: 300px; }
.ck .ck-map { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; z-index: 1; }
.ck.map-on .ck-mapfb { visibility: hidden; }
.ck .mp { fill: var(--c-soft, var(--line-2)); stroke: var(--panel); stroke-width: 1.5; }
.ck .mp.on { fill: var(--c1); fill-opacity: .8; }
.ck-pin { fill: var(--c-soft, #999); fill-opacity: .7; stroke: var(--panel, #fff); }
.ck-pin.on { fill: var(--c1, #333); fill-opacity: .8; }

/* ---------------------------------------------------------------- entrance (fallback when M.draw is not there) */
.ck.pre [data-ckd] { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="low"]) .ck.anim.go [data-draw="bar"] { transform-box: fill-box; transform-origin: 50% 100%; animation: ckBar 520ms var(--spring-soft, cubic-bezier(.2, 1.3, .4, 1)) both; animation-delay: calc(min(var(--i, 0), 24) * 18ms); }
  :root:not([data-motion="low"]) .ck.anim.go [data-draw="bar"][data-base="left"] { transform-origin: 0 50%; animation-name: ckBarX; }
  :root:not([data-motion="low"]) .ck.anim.go [data-draw="line"] { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); animation: ckLine 700ms var(--ease-out, ease-out) 120ms forwards; }
  :root:not([data-motion="low"]) .ck.anim.go [data-draw="area"], :root:not([data-motion="low"]) .ck.anim.go [data-draw="fade"] { animation: ckFade 520ms var(--ease-out, ease-out) both; }
  :root:not([data-motion="low"]) .ck.anim.go [data-draw="pour"] { animation: ckPour 640ms var(--ease-out, ease-out) both; }
  :root:not([data-motion="low"]) .ck.anim.go [data-draw="arc"] { transform-box: fill-box; transform-origin: center; animation: ckPop 460ms var(--spring-soft, cubic-bezier(.2, 1.3, .4, 1)) both; }
  :root:not([data-motion="low"]) .ck.anim.go [data-draw="dot"] { transform-box: fill-box; transform-origin: center; animation: ckPop 380ms var(--spring-soft, cubic-bezier(.2, 1.3, .4, 1)) 260ms both; }
  :root:not([data-motion="low"]) .ck.anim.go [data-draw="cell"] { animation: ckFade 360ms var(--ease-out, ease-out) both; animation-delay: calc(min(var(--d, 0), 30) * 14ms); }
}
.ck.anim.go [data-draw] { opacity: 1; }
@keyframes ckBar { from { transform: scaleY(0); } }
@keyframes ckBarX { from { transform: scaleX(0); } }
@keyframes ckLine { to { stroke-dashoffset: 0; } }
@keyframes ckFade { from { opacity: 0; } }
@keyframes ckPour { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ckPop { from { opacity: 0; transform: scale(.6); } }

/* ---------------------------------------------------------------- phone */
@media (max-width: 719px) {
  .dash .dk-head .u-head-a { width: 100%; justify-content: space-between; }
  .dash .dk-range { flex: 1 1 auto; }
  .dash .kc { padding: 14px; }
  .dash .kc-sp { width: 48px; height: 28px; }
  .dn2-r, .dn2-r .ck-s { width: 128px; height: 128px; }
  .ckbl li { grid-template-columns: minmax(70px, 34%) minmax(0, 1fr) 40px; gap: 8px; }
  .hp2.side { grid-template-columns: 1fr; }
}

/* owner overview: one KPI per department, 3 x 2 on a PC, 6 in a row on a wide screen */
@media (min-width: 1101px) {
  .dash .dk-kpis-5, .dash .dk-kpis-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash .dk-kpis-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); } /* owner with marketing: 4 + 3 */
}
@media (min-width: 1560px) {
  .dash .dk-kpis-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .dash .dk-kpis-6 .kc { grid-template-areas: "h h" "v v" "f sp"; }
}
.dash .kc-a { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); line-height: 1.2; }
.dash .kc-h > span { display: grid; }
/* labels drawn over marks keep a halo in the card colour so they read on any fill */
.ck .sk-l, .ck .tm-l, .ck .tm-v, .ck-funnel .fv { paint-order: stroke; stroke: var(--panel); stroke-width: 3px; stroke-linejoin: round; }

/* interaction feedback: lift/press come from motion.css (fx-lift, fx-hl, fx-press); chart marks highlight via .hl from charts2.js.
   Large chart cards lift less than KPI cards. Touch: no hover, :active presses, the tooltip follows the tapped mark. */
.dash .dash-card.fx-lift { --fx-lift: -1px; }
.ck .col.hl .mk, .ck g.hl > .mk { filter: none; }
@media (hover: none) { .ck .col.hl .hit { fill: var(--fx-hl, rgba(127, 127, 127, .08)); } }
.dash .dk-cover { display: grid; gap: 10px; margin: 0 0 14px; }
.dash .dk-cover > .card { margin: 0; }
/* the data table behind each chart is for screen readers only; a table ignores overflow, so its wrapper clips it */
.ck > .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* card head: when the card is narrow (phone, side cards) the tools wrap under a full-width title instead of squeezing it */
.dash .u-card-h { flex-wrap: wrap; row-gap: 8px; }
.dash .u-card-t { flex: 1 1 200px; min-width: 0; }
.dash .u-card-x { margin-left: auto; }
@media (max-width: 719px) {
  .dash .u-card-t { flex-basis: 100%; }
  .dash .u-card-x { margin-left: 0; justify-content: flex-start; }
}
/* lead: "now" strip on Home above the charts */
.dk-now { display: grid; gap: 8px; margin: 0 0 16px; }
.dk-now .plates { margin: 0; }
.dk-now-all { justify-self: start; font-size: .9em; padding: 4px 2px; }
/* lead: technician's visits today on Home */
.dk-vis { margin: 0 0 12px; display: grid; gap: 4px; }
.dk-vis h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.dk-vis h4 em { font-style: normal; color: var(--ink-3); font-weight: 600; }
.dk-vis-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 4px; border-top: 1px solid var(--line); }
.dk-vis-r.done { opacity: .65; }
.dk-vis-t { display: grid; min-width: 0; color: inherit; text-decoration: none; }
.dk-vis-t b, .dk-vis-t small { overflow-wrap: anywhere; }
.dk-vis-t small { color: var(--ink-3); }
.dk-vis-b { display: flex; align-items: center; gap: 4px; }
@media (max-width: 420px) { .dk-vis-r { grid-template-columns: minmax(0, 1fr); } .dk-vis-b { justify-content: flex-end; } }

/* ---------- tabs + period dropdown + pencil in one row; layout edit mode (2026-11-22) ---------- */
.dash .hm-bar.dk-bar { flex-wrap: nowrap; justify-content: flex-start; }
.dash .hm-bar.dk-bar .dk-tabs { flex: 0 1 auto; }
.dash .dk-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.dash .dk-rbtn { gap: 6px; white-space: nowrap; }
.dash .dk-rbtn .i { width: 16px; height: 16px; }
.dash .dk-eb { width: 36px; height: 36px; border-radius: 999px; }
.dash .dk-eb.dk-ok { background: var(--ink); color: var(--panel); }
.dash .dk-eb.dk-ok:hover { background: var(--ink-2); }
.dash .dk-edhint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: -6px 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--panel-sunk); font-size: 13px; color: var(--ink-2); }
.dash .dk-edhint .i { width: 16px; height: 16px; }
.dash .dk-edhint .btn { margin-left: auto; }
.dash.dk-editing .dash-card { outline: 1.5px dashed var(--line-2); outline-offset: 3px; }
.dash.dk-editing .dash-card .u-card-x .u-more, .dash.dk-editing .dash-card .dk-sel { display: none; }
.dash.dk-editing .dk-kpis [data-dk] { cursor: grab; touch-action: none; outline: 1.5px dashed var(--line-2); outline-offset: 3px; }
.dash.dk-editing .dk-kpis .kc-btn { visibility: hidden; }
.dash .dk-grip { cursor: grab; touch-action: none; }
.dash .dk-grip, .dash .dk-hide { width: 32px; height: 32px; }
.dash .dk-lift { cursor: grabbing; box-shadow: 0 18px 40px rgba(0, 0, 0, .18); transform: scale(1.02); opacity: .96; transition: none; }
.dash .dk-ph { border: 1.5px dashed var(--ink-3); border-radius: 16px; background: var(--panel-sunk); grid-column: span var(--span, 6); min-height: 60px; }
.dash .dk-kpis .dk-ph { grid-column: auto; }
html.dk-dragging, html.dk-dragging * { user-select: none; cursor: grabbing; }
.dash .dk-tray { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding: 12px; border: 1.5px dashed var(--line-2); border-radius: 14px; }
.dash .dk-tray p { margin: 0 6px 0 0; font-size: var(--fs-micro); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.dash.dk-editing .dk-fold .dk-grid:empty { min-height: 72px; border: 1.5px dashed var(--line-2); border-radius: 14px; }
@media (max-width: 720px) {
  .dash .hm-bar.dk-bar { flex-direction: row; align-items: center; }
  .dash .hm-bar.dk-bar .dk-tabs { flex: 1 1 auto; min-width: 0; }
  .dash .dk-rbtn span { display: none; }
  .dash .dk-ph { grid-column: 1 / -1; }
}
