.task-list-workspace .tl-heading{background:linear-gradient(115deg,var(--tl-blue-bg),var(--surface) 62%,var(--tl-violet-bg))}
.task-list-workspace .tl-heading p{display:block;max-width:760px}
.task-list-workspace .tl-stat{align-items:flex-start}
.task-list-workspace .tl-stat-copy{display:flex;min-width:0;flex-direction:column;gap:3px}
.task-list-workspace .tl-stat-copy small{font-size:10px;line-height:1.45;color:var(--muted);font-weight:400}
.task-list-workspace .tl-all-table{min-width:2325px;table-layout:fixed}
.task-list-workspace .tl-all-table th,.task-list-workspace .tl-all-table td{padding:9px 10px}
.task-list-workspace .tl-all-table :is(th,td).tl-all-col-number{position:sticky;left:0;z-index:3;background:var(--tl-row);box-shadow:3px 0 6px #233b5410}
.task-list-workspace .tl-all-table th.tl-all-col-number{z-index:7;background:var(--surface-soft)}
.task-list-workspace .tl-all-table :is(th,td).tl-all-col-actions{position:sticky;right:0;z-index:3;background:var(--tl-row);box-shadow:-3px 0 6px #233b5410}
.task-list-workspace .tl-all-table th.tl-all-col-actions{z-index:7;background:var(--surface-soft)}
.task-list-workspace .tl-all-tree{display:flex;align-items:flex-start;gap:5px;padding-left:calc(var(--depth,0)*14px);min-width:0}
.task-list-workspace .tl-all-number,.task-list-workspace .tl-all-title,.task-list-workspace .tl-all-relation{border:0;background:transparent;color:var(--tl-blue);padding:2px 0;text-align:left;white-space:normal;overflow-wrap:anywhere;line-height:1.45}
.task-list-workspace .tl-all-title{color:var(--ink);font-weight:550;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.task-list-workspace .tl-all-relation{font-size:11px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.task-list-workspace .tl-all-relations{display:flex;flex-direction:column;gap:5px}
.task-list-workspace .tl-all-people{max-height:4.6em;overflow:hidden;line-height:1.5;overflow-wrap:anywhere}
.task-list-workspace .tl-all-external{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:var(--tl-blue);overflow-wrap:anywhere}
.task-list-workspace .tl-all-reference-description{background:var(--surface-soft)}
.task-list-workspace .tl-all-task-row>.tl-all-col-number{border-bottom:0;border-right:1px solid var(--line)}
.task-list-workspace .tl-all-task-row>.tl-all-col-number:after{content:'';position:absolute;bottom:0;left:calc(10px + var(--separator-depth,0)*30px);right:0;border-bottom:1px solid var(--line);pointer-events:none}

/* Bitable-style hierarchy lives in the identifier column; other fields stay aligned. */
.task-list-workspace .tl-all-table{--task-row-height:56px}
.task-list-workspace[data-density="compact"] .tl-all-table{--task-row-height:44px}
.task-list-workspace .tl-all-task-row{height:var(--task-row-height)}
.task-list-workspace .tl-all-task-row>td{height:var(--task-row-height);box-sizing:border-box;padding:6px 10px;vertical-align:middle;overflow:hidden}
/* Cells contain their semantic control directly.  Avoiding one presentation-only
   wrapper per cell removes roughly 9k DOM nodes from a 597-row table. */
.task-list-workspace .tl-all-task-row>td> *{max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.task-list-workspace .tl-all-tree{padding-left:calc(var(--task-depth,0)*30px);box-sizing:border-box;align-items:center;gap:4px;width:100%}
.task-list-workspace .tl-all-number{flex:1 1 auto;min-width:0;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--ink);overflow:hidden;text-overflow:ellipsis}
.task-list-workspace .tl-all-tree .tl-tree-toggle{border:0;background:transparent;color:var(--muted);border-radius:4px;width:22px;min-width:22px}
.task-list-workspace .tl-all-tree .tl-tree-indent{width:22px;min-width:22px}
.task-list-workspace .tl-tree-guide{position:absolute;pointer-events:none;top:0;bottom:0;left:calc(21px + var(--guide-level)*30px);border-left:1px dashed var(--line)}
.task-list-workspace .tl-tree-guide-last{bottom:0}
.task-list-workspace .tl-tree-stem{top:calc(50% + 10px)}
.task-list-workspace .tl-child-count{flex:none;color:var(--muted);border-left:1px solid var(--line);padding-left:6px;margin-left:2px;font-variant-numeric:tabular-nums}
.task-list-workspace .tl-number-actions{display:flex;align-items:center;flex:none;gap:3px;margin-left:auto;padding-left:4px}
.task-list-workspace .tl-child-create,.task-list-workspace .tl-open-drawer{display:grid;place-items:center;flex:none;width:26px;height:26px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--muted);padding:0;font:inherit;font-size:18px;line-height:1;cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.task-list-workspace .tl-number-actions button:hover,.task-list-workspace .tl-number-actions button:focus-visible{color:var(--tl-blue);background:var(--tl-blue-bg);border-color:var(--line)}
.task-list-workspace .tl-number-actions button:focus-visible{outline:2px solid var(--tl-blue);outline-offset:2px}
.task-list-workspace .tl-all-col-title{padding-left:10px}
.task-list-workspace .tl-all-title,.task-list-workspace .tl-all-relation,.task-list-workspace .tl-all-external{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:unset}
.task-list-workspace .tl-all-people span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.task-list-workspace .tl-all-relations{gap:0;max-height:100%}
.task-list-workspace .tl-all-col-tags .tl-tags{flex-wrap:nowrap}
.task-list-workspace .tl-all-col-status .tl-stack{gap:2px}
.task-list-workspace .tl-all-table td:focus-within{outline:1px solid var(--tl-blue);outline-offset:-1px}
.task-list-workspace .tl-cell-preview{position:fixed;z-index:180;width:min(360px,calc(100vw - 24px));max-height:145px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:12px 14px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 28px #142c4226;line-height:1.6;font-size:12px}
.task-list-workspace .tl-cell-preview[hidden]{display:none}
.task-list-workspace .tl-all-table :is(th,td){font-size:13px}
.task-list-workspace .tl-all-table td :is(button,a,span,strong,small,div){font-size:inherit}
.task-list-workspace .tl-all-table .tl-number-actions button{font-size:16px}
.task-list-workspace .tl-all-table .tl-tree-toggle{font-size:15px}
.task-list-workspace .tl-all-table .tl-cell-editable{cursor:text}
.task-list-workspace .tl-all-table .tl-cell-editable:hover{box-shadow:inset 0 0 0 1px var(--tl-blue);background:var(--tl-blue-bg)}
.task-cell-editor{position:fixed;z-index:210;width:min(360px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto;box-sizing:border-box;padding:16px;background:var(--surface,#fff);color:var(--ink,#203045);border:1px solid var(--line,#dce3ed);border-radius:14px;box-shadow:0 12px 48px #20345b30;font-size:13px}
.task-cell-editor .task-editor{width:100%;min-height:0;padding:0;border:0;box-shadow:none;margin:0;border-radius:0;background:transparent}
.task-cell-editor .task-editor .section-title{display:flex;align-items:center;gap:12px;padding:0 0 12px;margin:0}
.task-cell-editor .task-editor .section-title h2{flex:1;min-width:0;white-space:nowrap;font-size:15px;line-height:24px;margin:0}
.task-cell-editor .task-editor .section-title button{flex:none;width:28px;height:28px;min-height:28px;padding:0;font-size:20px;line-height:1;border-radius:7px}
.task-cell-editor .task-editor .legacy-form{display:flex;flex-direction:column;align-items:stretch;width:100%;max-width:none;min-height:0;margin:0;padding:0;gap:10px}
.task-cell-editor .legacy-form>label{width:100%;margin:0;font-size:12px}
.task-cell-editor .legacy-form :is(input,select){font-size:13px;min-height:36px;padding:7px 10px;margin-top:5px}
.task-cell-editor .legacy-form>button{align-self:flex-end;min-height:34px;padding:6px 14px;font-size:13px;border-radius:9px;box-shadow:none}
.task-cell-editor .legacy-form>p:empty{display:none}
.task-cell-editor .plan-card{overflow-wrap:anywhere;margin:0;padding:12px}

@media(max-width:1000px){
  .task-list-workspace .tl-tree-guide{display:none}
  .task-list-workspace .tl-all-task-row>.tl-all-col-number:after{display:none}
  .task-list-workspace .tl-all-task-row{height:auto}
  .task-list-workspace .tl-heading p{display:block}
  .task-list-workspace .tl-all-scroll{overflow:visible}
  .task-list-workspace .tl-all-table{display:block;min-width:0!important;width:100%}
  .task-list-workspace .tl-all-table thead{display:none}
  .task-list-workspace .tl-all-table tbody{display:block;padding:0 12px 12px}
  .task-list-workspace .tl-all-task-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:12px;background:var(--tl-row)}
  .task-list-workspace .tl-all-table td{display:flex;position:static!important;box-shadow:none!important;flex-direction:column;gap:5px;width:auto!important;min-width:0;background:transparent;padding:9px 11px;border:0}
  .task-list-workspace .tl-all-table td:before{content:attr(data-label);font-size:10px;color:var(--muted)}
  .task-list-workspace .tl-all-col-number,.task-list-workspace .tl-all-col-title,.task-list-workspace .tl-all-col-relations,.task-list-workspace .tl-all-col-document,.task-list-workspace .tl-all-col-group,.task-list-workspace .tl-all-col-actions{grid-column:1/-1}
  .task-list-workspace .tl-all-col-number{border-left:4px solid var(--line)!important;border-bottom:1px solid var(--line)!important}
  .task-list-workspace .tl-all-col-number:before,.task-list-workspace .tl-all-col-actions:before{display:none}
  .task-list-workspace .tl-all-reference-description{grid-column:1/-1}
}
.tl-project-create{margin-left:auto;width:28px;height:28px;min-height:28px;padding:0;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--accent);font-size:19px;line-height:26px}
.tl-project-create:hover,.tl-project-create:focus-visible{background:var(--surface);border-color:var(--line)}
