.task-list { margin-left: var(--sidebar-width); padding: 24px; color: var(--df-color-text-body); }
.task-tabs { display: flex; gap: 28px; margin-bottom: 20px; border-bottom: 1px solid var(--df-color-tab-divider, var(--df-color-border-divider)); }
.task-tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 0 0 8px; line-height: 24px; }
.task-tabs button[aria-pressed="true"] { border-bottom-color: var(--df-color-text-strong); color: var(--df-color-text-strong); font-size: 16px; font-weight: 600; }
.task-list .toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.task-type[hidden] { display: none; }
/* 只约束工具栏直属/标签内搜索框，避免命中日期区间等复合控件里的 input */
.task-list .toolbar > input:not([type="checkbox"]):not([type="radio"]),
.task-list .toolbar > label > input:not([type="checkbox"]):not([type="radio"]),
.task-list .task-search input,
.task-list select,
.task-list .refresh,
.table-pagination button,
.story-detail .toolbar > button,
#batch-bar button,
#export-dialog button {
  height: 32px; color: inherit; border: 1px solid var(--df-color-border); border-radius: 4px; background: var(--df-color-surface-panel); font: inherit; padding: 0 10px;
}
.task-list .toolbar > input:not([type="checkbox"]):not([type="radio"]),
.task-list .toolbar > label:not(.resource-search) > input:not([type="checkbox"]):not([type="radio"]),
.task-list .task-search input { width: 240px; }
.task-list .toolbar > input:not([type="checkbox"]):not([type="radio"]),
.task-list .toolbar > label > input:not([type="checkbox"]):not([type="radio"]),
.task-list .task-search input,
.task-list select { background: var(--df-color-surface-media); border-color: var(--df-color-border-divider); }
.task-list input[type="checkbox"] {
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--df-color-primary);
  cursor: pointer;
}
.task-list .refresh { width: 32px; padding: 0; margin-left: auto; }
.task-table { overflow-x: auto; }
.task-table table { width: 100%; min-width: 820px; border-collapse: collapse; text-align: left; }
.task-table th { padding: 12px 16px; background: var(--df-color-surface-raised); white-space: nowrap; }
.task-empty { margin: 0; padding: 32px 0; text-align: center; color: var(--df-color-text-faint); border-bottom: 1px solid var(--df-color-border-divider); }
.table-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 16px; }
.task-center .task-table th { background: var(--df-color-surface); }
.task-center .toolbar { flex-wrap: wrap; }
.task-center .toolbar label { white-space: nowrap; }
.task-center .toolbar .refresh { flex: 0 0 32px; }
.task-center .task-table {
  scrollbar-width: thin;
  scrollbar-color: var(--df-color-border-strong) var(--df-color-surface);
}
.task-center .task-table table {
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
}
.task-center .task-table th { box-sizing: border-box; line-height: 18px; }
.task-center .task-table th:nth-child(1) { min-width: 200px; }
.task-center .task-table th:nth-child(2) { min-width: 240px; }
.task-center .task-table th:nth-child(3) { min-width: 80px; }
.task-center .task-table th:nth-child(4) { min-width: 140px; }
.task-center .task-table th:nth-child(5) { min-width: 110px; }
.task-center .task-table th:nth-child(6) { min-width: 180px; }
.task-center .task-table th:last-child {
  position: sticky;
  right: 0;
  min-width: 220px;
}
.task-center .task-table td { background: var(--df-color-surface-cell); }
.task-center .table-pagination { margin-top: 12px; margin-bottom: 0; }
.team-management .team-action { background: var(--df-color-info); border: 1px solid var(--df-color-info); border-radius: 4px; height: 32px; padding: 0 12px; }
#projects .team-action { margin-left: auto; }
.team-management__title { font-size: 15px; font-weight: 500; color: var(--df-color-text-strong); margin: 20px 0 16px; }
.team-management__split-layout { display: flex; min-height: 400px; }
.team-management__left-panel { width: 280px; flex-shrink: 0; background: var(--df-color-surface); border-radius: 8px; padding: 16px; }
.team-management__right-panel { flex: 1; margin-left: 20px; background: var(--df-color-surface); padding: 20px; overflow: hidden; border-radius: 8px; }
.team-management .local-items { list-style: none; padding: 0; }
.team-management .local-items button { width: 100%; text-align: left; border: 0; padding: 8px; border-radius: 4px; background: transparent; }
.team-management .local-items button:hover { background: var(--df-color-surface-raised); }
#team-dialog { color: var(--df-color-text-body); background: var(--df-color-surface-panel); border: 1px solid var(--df-color-border); border-radius: 8px; width: 480px; padding: 24px; }
#team-dialog::backdrop { background: var(--df-color-mask); }
#team-dialog h2 { margin-top: 0; font-size: 18px; }
#team-dialog label { display: grid; grid-template-columns: 90px 1fr; align-items: center; margin: 16px 0; }
#team-dialog footer { display: flex; justify-content: flex-end; gap: 10px; }
#team-dialog button { background: var(--df-color-surface-raised); border: 1px solid var(--df-color-border); border-radius: 4px; padding: 6px 12px; }
.team-management td { padding: 12px 16px; border-bottom: 1px solid var(--df-color-border-divider); }
.team-management__user-info { display: flex; align-items: center; gap: 10px; }
.team-management__user-icon {
  display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 50%; background: var(--df-color-accent-muted); font-size: 12px; font-weight: 500; color: var(--df-color-text);
}
.team-management__user-text { display: flex; flex-direction: column; min-width: 0; }
.team-management__user-name, .team-management__user-id { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-management__user-name { color: var(--df-color-text); }
.team-management__user-id { color: var(--df-color-text-faint); font-size: 12px; }
.task-search { position: relative; display: inline-flex; align-items: center; }
.task-center .task-search input { padding-right: 32px; }
.task-search svg { position: absolute; right: 10px; pointer-events: none; color: var(--df-color-text-muted); fill: currentColor; }

.console-top-links { display: flex; align-items: center; gap: 24px; }
.console-top-links a { color: inherit; text-decoration: none; }
.task-center { padding: 41px 44px 24px 24px; }
.task-center .task-tabs { gap: 40px; }
.task-center .toolbar { gap: 12px; }
.task-center .toolbar > .task-type { display: flex; align-items: center; width: 240px; height: 32px; padding-left: 12px; border: 1px solid var(--df-color-border-divider); border-radius: 4px; background: var(--df-color-surface-media); color: var(--df-color-text-secondary); white-space: nowrap; }
.task-center .toolbar > .task-type select { flex: 1; min-width: 0; border: 0; background: transparent; }
.task-center .task-search input { width: 240px; }
.task-center .task-table th { padding-top: 8px; padding-bottom: 8px; }
.task-center .task-table td.task-empty { display: table-cell; height: 60px; padding: 0; border-bottom: 0; background: var(--df-color-surface-media); text-align: center; vertical-align: middle; }
.task-center .task-empty .df-empty--table { width: 100%; }
.task-center .table-pagination { align-items: center; }
.task-center .table-pagination select { width: 84px; height: 24px; }
.task-center .table-pagination button { width: 24px; min-width: 24px; height: 24px; padding: 0; }
.task-center .table-pagination [aria-current="page"] { border-color: var(--df-color-primary-soft); color: var(--df-color-accent); }
/* 尾随 .df-management-surface 白卡：在卡外、灰底上，不贴视口底 */
.task-center .task-disclaimer {
  margin: 16px 0 0;
  color: var(--df-color-text-soft);
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  text-align: center;
}

/* ---------- 任务行与详情（P-01） ---------- */
.task-table table { table-layout: fixed; }
.task-table th:first-child { width: 32%; }
.task-table .task-info { display: flex; align-items: center; gap: var(--df-space-3); }
.task-thumb {
  display: grid;
  flex: none;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  border-radius: var(--df-radius-md);
  background: var(--df-color-surface-active);
  color: var(--df-color-text-faint);
  font-size: var(--df-font-size-lg);
}
.task-thumb img { width: 100%; height: 100%; object-fit: cover; }
.task-info__text { min-width: 0; }
.task-info__name { margin: 0 0 2px; overflow: hidden; color: var(--df-color-text); font-size: var(--df-font-size-xs); font-weight: var(--df-font-weight-medium); text-overflow: ellipsis; white-space: nowrap; }
.task-info__prompt { margin: 0; overflow: hidden; color: var(--df-color-text-faint); font-size: var(--df-font-size-xs); text-overflow: ellipsis; white-space: nowrap; }
.task-cell-id { color: var(--df-color-text-muted); font-size: var(--df-font-size-xs); }
/* 状态徽标使用 styles/components.css 的 .df-badge + --dot */
/* 行内操作按钮使用 styles/components.css 的 .df-btn--sm，这里只保留单元格布局 */
.task-actions { display: flex; gap: var(--df-space-2); }
.task-table.hide-type .task-type { display: none; }

/* 任务日志弹窗使用 .df-dialog（见 tasks.html），这里只保留内容排版 */
.task-detail__body { gap: var(--df-space-4); }
.task-detail__head { display: flex; align-items: center; gap: var(--df-space-3); }
.task-detail__name { margin: 0; color: var(--df-color-text); font-size: var(--df-font-size-md); font-weight: var(--df-font-weight-medium); }
.task-detail__line { margin: 0; color: var(--df-color-text-faint); font-size: var(--df-font-size-xs); }
.task-cell-id { cursor: default; }

/* Mock 有数据态：沿用原站表格单元格语义；不改变线上空态几何。 */
.task-center:has(td.task-info) { padding-right: calc(var(--df-space-9) + var(--df-space-7)); }
.task-center .task-table table:has(td.task-info) { min-width: 1120px; }
.task-center .task-table table:has(td.task-info) th:first-child { width: auto; }
.task-center .task-table table:has(td.task-info) th:nth-child(2) { width: 100px; }
.task-center .task-table table:has(td.task-info) th:nth-child(3) { width: 70px; }
.task-center .task-table table:has(td.task-info) th:nth-child(4) { width: 100px; }
.task-center .task-table table:has(td.task-info) th:nth-child(5) { width: 80px; }
.task-center .task-table table:has(td.task-info) th:nth-child(6) { width: 170px; }
.task-center .task-table table:has(td.task-info) th:last-child { width: 220px; }
.task-center .task-table tr:has(td.task-info) td { padding: var(--df-space-2) var(--df-space-4); border-bottom: 1px solid var(--df-color-table-divider, var(--df-color-border-subtle)); vertical-align: middle; }
.task-center .task-table td:is(.task-info,.task-actions) { display: table-cell; }
.task-center .task-info .task-thumb { float: left; margin-right: var(--df-space-3); }
.task-center .task-info__text { margin-left: 56px; padding-top: var(--df-space-1); }
.task-center .task-actions { white-space: nowrap; }
.task-center .task-actions button + button { margin-left: var(--df-space-2); }
.task-center .task-table td.task-actions { position: sticky; right: 0; }
@media (max-width: 1100px) {
  .task-center .task-table table:has(td.task-info) { min-width: 600px; }
  .task-center .task-table table:has(td.task-info) :is(th,td):is(:nth-child(2),:nth-child(5),:nth-child(6)) { display: none; }
}
