/* 운영 관리 → 티켓(admin-tickets.js). 색 · 글꼴은 허브 토큰(--ui-*)을 따르고, 그림의 누구 차례 색만 이 칸이 정한다.
   누구 차례 색은 쌓는 순서(에이전트 · 결정 · 병합 · 자료 · 사람)대로 색약 검사를 통과한 짝이다. 담당 없음은 회색.
   대비가 3:1보다 낮은 색(노랑 · 초록)은 범례에 이름과 수를 늘 함께 적고, 숫자로 보기 표를 둔다. */
.tk-root{--tk-agent:#2a78d6;--tk-decide:#eb6834;--tk-merge:#6250d6;--tk-info:#eda100;--tk-person:#1baf7a;--tk-nobody:#a3abb5;--tk-warn:#b45309;--tk-urgent:#d9480f;
  position:relative;display:grid;grid-template-columns:minmax(0,1fr);gap:16px;min-width:0}
.tk-root [data-turn="agent"]{--c:var(--tk-agent)}
.tk-root [data-turn="decide"]{--c:var(--tk-decide)}
.tk-root [data-turn="merge"]{--c:var(--tk-merge)}
.tk-root [data-turn="info"]{--c:var(--tk-info)}
.tk-root [data-turn="person"]{--c:var(--tk-person)}
.tk-root [data-turn="nobody"]{--c:var(--tk-nobody)}
.tk-root .visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.tk-root [data-tk-top]{display:grid;gap:12px}

/* 1. 숫자 줄 */
.tk-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.tk-stat{display:grid;gap:2px;padding:14px 16px;border:1px solid var(--ui-line);border-radius:var(--ui-radius-m);background:#fff}
.tk-stat b{font-size:28px;line-height:1.1;font-weight:700;color:var(--ui-ink);font-variant-numeric:tabular-nums}
.tk-stat span{font-size:13px;color:var(--ui-ink-2)}
.tk-stat.is-human{box-shadow:inset 3px 0 0 var(--tk-decide)}
.tk-stat.is-stale{box-shadow:inset 3px 0 0 var(--tk-warn)}

/* 2. 그림 세 장 */
.tk-viz{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr) minmax(0,1fr);gap:12px}
.tk-card-viz{display:flex;flex-direction:column;min-width:0;padding:16px 18px 12px;border:1px solid var(--ui-line);border-radius:var(--ui-radius-m);background:#fff}
.tk-card-viz header h2{margin:0;font-size:15px;font-weight:600;color:var(--ui-ink)}
.tk-card-viz header p{margin:4px 0 14px;font-size:12px;line-height:1.5;color:var(--ui-ink-2)}
.tk-bar{display:flex;gap:2px;height:30px}
.tk-bar-seg{flex:1 1 0;min-width:6px;padding:0;border:0;border-radius:4px;background:var(--c);cursor:pointer;transition:opacity .12s}
.tk-bar.has-active .tk-bar-seg:not([aria-pressed="true"]){opacity:.3}
.tk-bar-empty{flex:1;border-radius:4px;background:var(--ui-surface-2)}
.tk-legend{display:flex;flex-wrap:wrap;gap:2px 6px;margin:12px 0 0;padding:0;list-style:none}
.tk-legend button,.tk-legend.is-static li{display:inline-flex;align-items:center;gap:6px;padding:4px 6px;border:0;border-radius:6px;background:none;color:var(--ui-ink-2);font:inherit;font-size:13px}
.tk-legend button{cursor:pointer}
.tk-legend button:hover,.tk-legend button[aria-pressed="true"]{background:var(--ui-surface-2);color:var(--ui-ink)}
.tk-legend button:disabled{opacity:.45;cursor:default;background:none}
.tk-legend i{flex:none;width:10px;height:10px;border-radius:3px;background:var(--c)}
.tk-legend b{color:var(--ui-ink);font-weight:600;font-variant-numeric:tabular-nums}
.tk-legend i.is-line{height:2px;border-radius:1px;background:var(--ui-ink)}
.tk-legend i.is-in{background:var(--ui-ink-2)}
.tk-legend i.is-out{background:var(--tk-nobody)}

.tk-flow{position:relative;padding-left:30px}
.tk-flow-line{position:relative;height:118px}
.tk-flow-line svg{display:block;width:100%;height:100%;overflow:visible}
.tk-axis-y{position:absolute;top:-6px;bottom:-6px;left:-30px;display:flex;flex-direction:column;justify-content:space-between;width:24px;font-size:12px;color:var(--ui-ink-2);text-align:right;font-variant-numeric:tabular-nums}
.tk-axis-y b{font-weight:400}
.tk-base{stroke:var(--ui-line-strong);stroke-width:1}
.tk-area{fill:var(--ui-ink);opacity:.07}
.tk-line{fill:none;stroke:var(--ui-ink);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.tk-flow-end{position:absolute;width:8px;height:8px;border-radius:50%;background:var(--ui-ink);box-shadow:0 0 0 2px #fff;transform:translate(-50%,-50%);pointer-events:none}
.tk-io{display:flex;gap:2px;height:46px;margin-top:8px}
.tk-io span{flex:1;display:grid;grid-template-rows:1fr 1fr;row-gap:2px;min-width:0}
.tk-io i{display:block;justify-self:center;width:100%;max-width:7px}
.tk-io i.is-in{align-self:end;border-radius:2px 2px 0 0;background:var(--ui-ink-2)}
.tk-io i.is-out{align-self:start;border-radius:0 0 2px 2px;background:var(--tk-nobody)}
.tk-axis-x{display:flex;justify-content:space-between;margin-top:6px;font-size:12px;color:var(--ui-ink-2);font-variant-numeric:tabular-nums}
.tk-hit{position:absolute;top:0;right:0;left:30px;height:172px;display:flex}
.tk-hit span{flex:1}
.tk-cross{position:absolute;z-index:2;width:1px;background:var(--ui-ink);opacity:.3;pointer-events:none}

.tk-aging{display:flex;gap:8px;height:176px}
.tk-age-col{flex:1;display:flex;flex-direction:column;min-width:0}
.tk-age-plot{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;min-height:0;border-bottom:1px solid var(--ui-line-strong)}
.tk-age-total{margin-bottom:4px;font-size:12px;font-weight:600;color:var(--ui-ink);font-variant-numeric:tabular-nums}
.tk-age-stack{display:flex;flex-direction:column-reverse;gap:2px;width:min(34px,72%)}
.tk-age-stack span{flex:1 1 0;min-height:3px;border-radius:3px;background:var(--c)}
.tk-age-name{margin-top:6px;font-size:12px;color:var(--ui-ink-2);text-align:center;white-space:nowrap}

.tk-numbers{margin-top:auto;padding-top:10px}
.tk-numbers summary{width:max-content;font-size:12px;color:var(--ui-ink-2);cursor:pointer}
.tk-numbers-scroll{max-height:220px;margin-top:8px;overflow:auto}
.tk-numbers table{width:100%;border-collapse:collapse;font-size:12px;font-variant-numeric:tabular-nums}
.tk-numbers th,.tk-numbers td{padding:4px 6px;border-bottom:1px solid var(--ui-line);text-align:right;white-space:nowrap}
.tk-numbers th:first-child{text-align:left;font-weight:500}
.tk-numbers thead th{color:var(--ui-ink-2);font-weight:500}

.tk-tip{position:absolute;z-index:5;padding:5px 9px;border-radius:6px;background:var(--ui-ink);box-shadow:var(--ui-shadow-1);color:#fff;font-size:12px;white-space:nowrap;pointer-events:none}

/* 3. 고르는 줄 */
.tk-toolbar,.tk-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.tk-filters{margin-top:8px}
.tk-new{display:inline-flex;align-items:center;gap:6px}
.tk-new span{font-size:16px;line-height:1}
.tk-root .tk-search input{width:220px;min-height:38px;padding:4px 14px;border-radius:var(--ui-pill);font-size:13px}
.tk-root .tk-seg{background:var(--ui-surface-2)}
.tk-root .tk-seg button{min-height:32px;padding:4px 10px;font-size:13px}
.tk-active-filter{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:4px 12px;border:1px solid var(--ui-line-strong);border-radius:var(--ui-pill);background:#fff;color:var(--ui-ink);font:inherit;font-size:13px;cursor:pointer}
.tk-active-filter i,.tk-turn-dot{flex:none;width:9px;height:9px;border-radius:50%;background:var(--c)}

/* 4. 보드 */
.tk-board{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(252px,1fr);gap:10px;align-items:start;overflow-x:auto;padding-bottom:6px}
.tk-col{display:flex;flex-direction:column;min-width:0;border:1px solid var(--ui-line);border-radius:var(--ui-radius-m);background:var(--ui-surface)}
.tk-col.is-review{box-shadow:inset 0 3px 0 var(--tk-decide)}
.tk-col.is-drop{outline:2px dashed var(--brand-primary);outline-offset:-3px}
.tk-col header{display:flex;align-items:center;gap:8px;padding:11px 10px 9px 12px}
.tk-col h3{margin:0;font-size:13px;font-weight:600;color:var(--ui-ink)}
.tk-col-count{font-size:12px;color:var(--ui-ink-2);font-variant-numeric:tabular-nums}
.tk-col-add{display:grid;place-items:center;width:26px;height:26px;margin-left:auto;padding:0;border:0;border-radius:6px;background:none;color:var(--ui-ink-2);font:inherit;font-size:18px;cursor:pointer}
.tk-col-add:hover{background:var(--ui-surface-2);color:var(--ui-ink)}
.tk-cards{display:flex;flex-direction:column;gap:8px;max-height:72vh;padding:0 8px 10px;overflow-y:auto}
.tk-card{padding:10px 12px;border:1px solid var(--ui-line);border-radius:10px;background:#fff;box-shadow:0 1px 1px rgba(20,32,42,.03);cursor:pointer;transition:border-color .12s,box-shadow .12s}
.tk-card:hover{border-color:var(--ui-line-strong);box-shadow:var(--ui-shadow-1)}
.tk-card.is-open{border-color:var(--ui-ink);box-shadow:0 0 0 1px var(--ui-ink)}
.tk-card.is-drag{opacity:.45}
.tk-card.is-canceled{opacity:.6}
.tk-card.is-canceled .tk-card-title{text-decoration:line-through}
.tk-card:focus-visible,.tk-row:focus-visible{outline:3px solid var(--ui-focus);outline-offset:2px}
.tk-card-top{display:flex;align-items:center;gap:6px}
.tk-card-top .tk-avatar{margin-left:auto}
.tk-key{font-size:12px;color:var(--ui-ink-2);font-variant-numeric:tabular-nums;white-space:nowrap}
.tk-card-title{display:-webkit-box;margin:6px 0 0;overflow:hidden;color:var(--ui-ink);font-size:14px;font-weight:500;line-height:1.45;word-break:break-word;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.tk-card-reason{display:-webkit-box;margin:6px 0 0;padding-left:8px;overflow:hidden;border-left:2px solid var(--c);color:var(--ui-ink-2);font-size:12px;line-height:1.5;word-break:break-word;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.tk-card-meta{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px}
.tk-turn{display:inline-flex;align-items:center;gap:5px;padding:2px 8px 2px 7px;border-radius:var(--ui-pill);background:var(--ui-surface-2);color:var(--ui-ink);font-size:12px;white-space:nowrap}
.tk-turn i{flex:none;width:8px;height:8px;border-radius:50%;background:var(--c)}
.tk-src,.tk-label{padding:1px 8px;border:1px solid var(--ui-line);border-radius:var(--ui-pill);color:var(--ui-ink-2);font-size:12px;white-space:nowrap}
.tk-card-foot{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin-top:8px;color:var(--ui-ink-2);font-size:12px}
.tk-comments{display:inline-flex;align-items:center;gap:3px}
.tk-comments svg{width:13px;height:13px}
.tk-stale,.tk-due.is-late{display:inline-flex;align-items:center;gap:4px;color:var(--tk-warn);font-weight:600}
.tk-stale::before{content:'';width:7px;height:7px;border:1.5px solid currentColor;border-radius:50%}
.tk-pr{color:var(--ui-ink);font-weight:600}
.tk-empty,.tk-more{margin:0;padding:14px 0;color:var(--ui-ink-2);font-size:12px;text-align:center}
.tk-zero{max-width:640px}

.tk-status{flex:none;width:16px;height:16px;color:var(--ui-ink-2)}
.tk-status.is-doing,.tk-status.is-review,.tk-status.is-done{color:var(--ui-ink)}
.tk-prio{flex:none;width:16px;height:16px;color:var(--ui-ink-2)}
.tk-prio.is-urgent{color:var(--tk-urgent)}
.tk-prio.is-none{color:var(--ui-line-strong)}
.tk-avatar{display:inline-grid;place-items:center;flex:none;width:22px;height:22px;border-radius:50%;background:var(--ui-surface-2);color:var(--ui-ink);font-size:12px;font-weight:600}
.tk-avatar.is-agent{background:var(--ui-accent-soft);color:var(--brand-primary)}
.tk-avatar.is-agent svg{width:14px;height:14px}
.tk-avatar.is-empty{border:1.5px dashed var(--ui-line-strong);background:none}

/* 5. 목록 */
.tk-list section h3{display:flex;align-items:center;gap:8px;margin:14px 0 6px;font-size:13px;font-weight:600;color:var(--ui-ink)}
.tk-list section:first-child h3{margin-top:0}
.tk-list ul{margin:0;padding:0;overflow:hidden;border:1px solid var(--ui-line);border-radius:var(--ui-radius-m);background:#fff;list-style:none}
.tk-row{display:grid;grid-template-columns:16px 76px minmax(0,1fr) auto auto 64px 22px;align-items:center;gap:10px;padding:9px 14px;border-top:1px solid var(--ui-line);font-size:13px;cursor:pointer}
.tk-row:first-child{border-top:0}
.tk-row:hover,.tk-row.is-open{background:var(--ui-surface)}
.tk-row-title{overflow:hidden;color:var(--ui-ink);text-overflow:ellipsis;white-space:nowrap}
.tk-row-when{color:var(--ui-ink-2);font-size:12px;text-align:right;white-space:nowrap}

/* 6. 한 장(오른쪽) */
.tk-scrim{display:none}
.tk-drawer{position:fixed;top:0;right:0;bottom:0;z-index:1200;display:flex;flex-direction:column;gap:14px;width:min(560px,100vw);padding:16px 22px 40px;overflow-y:auto;border-left:1px solid var(--ui-line);background:#fff;box-shadow:var(--ui-shadow-2);animation:tk-in .16s ease-out}
@keyframes tk-in{from{opacity:0;transform:translateX(18px)}}
.tk-drawer-head{display:flex;align-items:center;gap:8px}
.tk-out{margin-left:auto;color:var(--ui-link);font-size:13px}
.tk-close{display:grid;place-items:center;width:32px;height:32px;margin-left:auto;padding:0;border:0;border-radius:8px;background:none;color:var(--ui-ink-2);font:inherit;font-size:22px;cursor:pointer}
.tk-out+.tk-close{margin-left:4px}
.tk-close:hover{background:var(--ui-surface-2);color:var(--ui-ink)}
.tk-root .tk-drawer .tk-title-input{width:calc(100% + 16px);margin:0 -8px;padding:6px 8px;border-color:transparent;font-size:20px;font-weight:600}
.tk-root .tk-drawer .tk-title-input:hover{border-color:var(--ui-line)}
.tk-title{margin:0;color:var(--ui-ink);font-size:19px;font-weight:600;line-height:1.4;word-break:break-word}
.tk-props{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:6px 12px;margin:0;font-size:13px}
.tk-props dt{color:var(--ui-ink-2)}
.tk-props dd{display:flex;align-items:center;gap:6px;min-width:0;margin:0;color:var(--ui-ink)}
.tk-root .tk-props :is(select,input){width:100%;max-width:300px;min-height:34px;padding:4px 10px;font-size:13px}
.tk-props a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tk-toggle{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:3px 10px;border:1px solid var(--ui-line-strong);border-radius:var(--ui-pill);background:#fff;color:var(--ui-ink);font:inherit;font-size:13px;cursor:pointer}
.tk-toggle[aria-pressed="true"]{border-color:var(--tk-urgent)}
.tk-ask{padding:12px 14px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-surface);box-shadow:inset 3px 0 0 var(--c)}
.tk-ask-head{display:flex;align-items:center;gap:8px;margin:0 0 6px;color:var(--ui-ink-2);font-size:12px}
.tk-ask>p:last-child{margin:0;color:var(--ui-ink);font-size:14px;line-height:1.55;word-break:break-word}
.tk-root .tk-drawer textarea{width:100%}
.tk-delegate{display:inline-flex;align-items:center;gap:6px;align-self:flex-start}
.tk-delegate svg{width:16px;height:16px}
.tk-h{margin:4px 0 0;color:var(--ui-ink-2);font-size:13px;font-weight:600}
.tk-instruction summary{color:var(--ui-ink-2);font-size:13px;cursor:pointer}
.tk-instruction .tk-ev-body{margin-top:6px}
.tk-timeline{display:grid;gap:12px;margin:0;padding:0 0 0 16px;border-left:1px solid var(--ui-line);list-style:none}
.tk-ev{position:relative}
.tk-ev::before{content:'';position:absolute;top:5px;left:-21px;width:9px;height:9px;border:2px solid var(--ui-line-strong);border-radius:50%;background:#fff}
.tk-ev.is-agent::before{border-color:var(--tk-agent)}
.tk-ev.is-comment::before{border-color:var(--ui-ink)}
.tk-ev-head{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin:0;color:var(--ui-ink-2);font-size:12px}
.tk-ev-head b{color:var(--ui-ink);font-weight:600}
.tk-ev-head b.is-agent{display:inline-flex;align-items:center;gap:4px}
.tk-ev-head b.is-agent svg{width:14px;height:14px;color:var(--tk-agent)}
.tk-ev-status{padding:0 6px;border-radius:var(--ui-pill);background:var(--ui-surface-2);color:var(--ui-ink)}
.tk-ev>p:not(.tk-ev-head){margin:3px 0 0;color:var(--ui-ink-2);font-size:13px;word-break:break-word}
.tk-ev>p b{color:var(--ui-ink);font-weight:600}
.tk-ev-body{margin-top:4px;padding:8px 10px;border-radius:8px;background:var(--ui-surface);color:var(--ui-ink);font-size:14px;line-height:1.6;white-space:pre-wrap;word-break:break-word}
.tk-form{display:flex;flex-direction:column;gap:12px}
.tk-form-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;margin-top:8px}
.tk-form-actions .caption{margin:0 auto 0 0}

@media(prefers-reduced-motion:reduce){.tk-drawer{animation:none}.tk-card,.tk-bar-seg{transition:none}}
@media(max-width:1180px){
  .tk-viz{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .tk-card-viz.is-flow{grid-column:1/-1;order:-1}
}
@media(max-width:900px){.tk-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
  .tk-viz{grid-template-columns:minmax(0,1fr)}
  .tk-card-viz.is-flow{grid-column:auto}
  .tk-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tk-stat{padding:12px 14px}
  .tk-stat b{font-size:24px}
  .tk-root .tk-search{flex:1 1 160px}
  .tk-root .tk-search input{width:100%}
  .tk-filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .tk-filters>*{flex-shrink:0}
  .tk-board{grid-auto-columns:84%;scroll-snap-type:x mandatory}
  .tk-col{scroll-snap-align:start}
  .tk-cards{max-height:none}
  .tk-row{grid-template-columns:16px minmax(0,1fr) 22px;gap:6px 10px}
  .tk-row .tk-key,.tk-row .tk-src,.tk-row .tk-row-when{display:none}
  .tk-row .tk-turn{grid-column:2;grid-row:2;justify-self:start}
  .tk-row .tk-avatar{grid-column:3;grid-row:1}
  .tk-scrim{display:block;position:fixed;inset:0;z-index:1199;background:rgba(20,32,42,.32)}
  .tk-drawer{width:100vw;padding:14px 16px 32px;border-left:0}
  .tk-props{grid-template-columns:84px minmax(0,1fr)}
}

.tk-root.tk-portal{display:block;position:static}
.tk-mini-h{margin:16px 0 6px;color:var(--ui-ink-2);font-size:12px;font-weight:600}
.tk-mini{display:grid;gap:2px;margin:0;padding:0;list-style:none}
.tk-mini li{display:grid;grid-template-columns:9px minmax(0,1fr) auto;align-items:center;gap:8px;padding:6px 8px;border-radius:6px;font-size:13px;cursor:pointer}
.tk-mini li:hover{background:var(--ui-surface)}
.tk-mini li:focus-visible{outline:3px solid var(--ui-focus);outline-offset:1px}
.tk-mini-title{overflow:hidden;color:var(--ui-ink);text-overflow:ellipsis;white-space:nowrap}
.tk-mini b{color:var(--tk-warn);font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}

/* 7. 간트(타임라인): 왼쪽 이름 칸 + 오른쪽 날짜 칸. 막대 · 눈금 자리는 data-left · data-w(%)를 스크립트가 넣는다. */
.tk-gantt{--lw:320px;overflow-x:auto;border:1px solid var(--ui-line);border-radius:var(--ui-radius-m);background:#fff}
.tk-g-inner{min-width:920px}
.tk-g-head,.tk-g-row{display:grid;grid-template-columns:var(--lw) minmax(0,1fr)}
.tk-g-head{position:sticky;top:0;z-index:3;border-bottom:1px solid var(--ui-line);background:#fff}
.tk-g-corner{position:sticky;left:0;z-index:1;padding:10px 14px;background:#fff;color:var(--ui-ink-2);font-size:12px;font-weight:600}
.tk-g-scale{position:relative;height:36px}
.tk-g-tick{position:absolute;top:11px;padding-left:5px;border-left:1px solid var(--ui-line-strong);color:var(--ui-ink-2);font-size:12px;line-height:14px;white-space:nowrap;font-variant-numeric:tabular-nums}
.tk-g-now-label{position:absolute;bottom:2px;transform:translateX(-50%);padding:0 6px;border-radius:var(--ui-pill);background:var(--ui-ink);color:#fff;font-size:11px;line-height:16px;font-weight:600}
.tk-g-body{position:relative;padding-bottom:6px}
.tk-g-grid{position:absolute;top:0;right:0;bottom:0;left:var(--lw);pointer-events:none}
.tk-g-weekend{position:absolute;top:0;bottom:0;background:var(--ui-surface)}
.tk-g-now{position:absolute;top:0;bottom:0;width:0;border-left:1.5px solid var(--ui-ink);opacity:.55}
.tk-g-group h3{position:sticky;left:0;z-index:2;display:flex;align-items:center;gap:8px;box-sizing:border-box;width:var(--lw);margin:0;padding:12px 14px 4px;border-right:1px solid var(--ui-line);background:#fff;font-size:13px;font-weight:600;color:var(--ui-ink)}
.tk-g-more{margin-left:6px;padding:2px 10px;border:1px solid var(--ui-line-strong);border-radius:var(--ui-pill);background:#fff;color:var(--ui-ink-2);font:inherit;font-size:12px;cursor:pointer}
.tk-g-more:hover{color:var(--ui-ink)}
.tk-g-row{position:relative;cursor:pointer}
.tk-g-row:hover .tk-g-label,.tk-g-row.is-open .tk-g-label{background:var(--ui-surface)}
.tk-g-row:hover .tk-g-track,.tk-g-row.is-open .tk-g-track{background:rgba(20,32,42,.025)}
.tk-g-row:focus-visible{outline:3px solid var(--ui-focus);outline-offset:-3px}
.tk-g-label{position:sticky;left:0;z-index:2;display:grid;grid-template-columns:16px 74px minmax(0,1fr) 22px;align-items:center;gap:8px;padding:5px 12px 5px 14px;border-right:1px solid var(--ui-line);background:#fff;font-size:13px}
.tk-g-title{overflow:hidden;color:var(--ui-ink);text-overflow:ellipsis;white-space:nowrap}
.tk-g-track{position:relative;min-height:32px}
.tk-g-bar{position:absolute;top:9px;height:14px;min-width:4px;overflow:hidden;border-radius:4px;background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--c) 34%,#fff) 0 3px,color-mix(in srgb,var(--c) 14%,#fff) 3px 6px);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c) 45%,#fff)}
.tk-g-bar i{display:block;height:100%;background:var(--c)}
.tk-g-bar.is-closed{--c:var(--tk-nobody);opacity:.7}
.tk-g-bar.is-clipped{border-top-left-radius:0;border-bottom-left-radius:0}
.tk-g-due{position:absolute;top:11px;width:10px;height:10px;margin-left:-5px;border:2px solid var(--ui-ink);border-radius:2px;background:#fff;transform:rotate(45deg)}
.tk-g-due.is-late{border-color:var(--tk-urgent);background:var(--tk-urgent)}
.tk-g-legend{margin-top:10px}
.tk-legend i.tk-g-key{flex:none;width:18px;height:10px;border-radius:3px}
.tk-legend i.tk-g-key.is-active{background:var(--ui-ink-2)}
.tk-legend i.tk-g-key.is-idle{background:repeating-linear-gradient(135deg,var(--ui-line-strong) 0 3px,var(--ui-surface-2) 3px 6px)}
.tk-legend i.tk-g-key.is-due{width:9px;height:9px;border:2px solid var(--ui-ink);border-radius:2px;background:#fff;transform:rotate(45deg)}
.tk-legend i.tk-g-key.is-now{width:0;height:14px;border-left:1.5px solid var(--ui-ink);border-radius:0;background:none}
@media(max-width:760px){
  .tk-gantt{--lw:168px}
  .tk-g-inner{min-width:760px}
  .tk-g-label{grid-template-columns:16px minmax(0,1fr) 22px;gap:6px;padding:5px 8px 5px 10px}
  .tk-g-label .tk-key{display:none}
}
