.project-task-toolbar-actions { margin-left:auto; display:flex; align-items:center; justify-content:flex-end; gap:20px; }
.project-task-copy { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:28px; margin:12px 0 20px; padding:20px 0; border-top:1px solid #e5e9e2; border-bottom:1px solid #e5e9e2; }
.project-task-copy[hidden] { display:none; }
.project-task-copy input[type=search] { width:100%; border:1px solid #c9d3c1; border-radius:6px; padding:9px 10px; font:inherit; font-size:13px; background:white; }
.project-task-copy-sources { margin-top:10px; max-height:320px; overflow:auto; }
.project-task-copy-sources a { display:block; padding:12px; border-bottom:1px solid #e5e9e2; border-radius:4px; }
.project-task-copy-sources a[hidden] { display:none; }
.project-task-copy-sources a[aria-current],.project-task-copy-sources a:hover { background:#f4f7f1; }
.project-task-copy-sources strong { display:block; font-size:13px; font-weight:500; }
.project-task-copy-sources small,.project-task-copy-list small { display:block; font-size:12px; color:#627063; margin-top:3px; }
.project-task-copy-preview { min-width:0; border-left:1px solid #e5e9e2; padding-left:28px; }
.project-task-copy-preview h4 { margin:0 0 8px; font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.project-task-copy-list { margin:12px 0 16px; padding:0; list-style:none; max-height:320px; overflow:auto; }
.project-task-copy-list li { font-size:13px; padding:10px 0; border-bottom:1px solid #e5e9e2; overflow-wrap:anywhere; }
.project-task-copy-preview .btn-primary:disabled { opacity:.5; cursor:not-allowed; }
@media(max-width:720px) { .project-task-copy { grid-template-columns:1fr; }.project-task-copy-preview { border-left:0; border-top:1px solid #e5e9e2; padding:20px 0 0; }.project-task-toolbar-actions { gap:12px; flex-wrap:wrap; } }

/* Share the empty row with its actions, rather than pushing the message below them. */
.project-tasks-empty:not(:has([data-inline-row-target="row"]:not([hidden]))) { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:0 16px; }
.project-tasks-empty:not(:has([data-inline-row-target="row"]:not([hidden]))) > .detail-project-toolbar { grid-column:2; grid-row:1; margin:0; }
.project-tasks-empty:not(:has([data-inline-row-target="row"]:not([hidden]))) > [data-details-work="active"] { grid-column:1; grid-row:1; }
.project-tasks-empty > .project-task-copy { grid-column:1 / -1; grid-row:2; }
/* Budget help sits below the empty row without stretching its section label. */
[data-directory-section="Tasks"]:has(.project-tasks-empty) > .directory-section-label { align-self:start; }
.project-tasks-empty > .field-hint { grid-column:1 / -1; }
@media(max-width:640px) {
  .project-tasks-empty:not(:has([data-inline-row-target="row"]:not([hidden]))) { grid-template-columns:minmax(0,1fr); gap:14px; }
  .project-tasks-empty:not(:has([data-inline-row-target="row"]:not([hidden]))) > .detail-project-toolbar { grid-column:1; grid-row:1; }
  .project-tasks-empty:not(:has([data-inline-row-target="row"]:not([hidden]))) > [data-details-work="active"] { grid-column:1; grid-row:2; }
  .project-tasks-empty > .project-task-copy { grid-row:3; }
}

[data-controller~="task-copy"]:has(> .project-task-copy:not([hidden])) > .detail-project-toolbar .detail-work-tabs,
[data-controller~="task-copy"]:has(> .project-task-copy:not([hidden])) [data-inline-row-target="empty"],
[data-controller~="task-copy"]:has(> .project-task-copy:not([hidden])) > [data-details-work] > p.detail-empty { display:none; }
.project-task-copy-sources a:last-of-type { border-bottom:0; }

/* Creation actions and their picker belong to the Active task view only. */
[data-controller~="task-copy"]:has([data-work-view="archived"][aria-pressed="true"]) .project-task-toolbar-actions,
[data-controller~="task-copy"]:has([data-work-view="archived"][aria-pressed="true"]) > .project-task-copy { display:none; }

.project-task-draft-editor .task-columns { border-bottom-color:#dce3dc; }
.project-task-draft-row { display:flex; align-items:center; gap:12px; padding:15px 10px; border-bottom:1px solid #e9eee6; }
.project-task-draft-name { min-width:0; flex:1; }
.project-task-draft-row input { display:block; width:100%; min-width:0; border:0; border-bottom:1px dotted transparent; background:transparent; padding:3px 2px; font:inherit; }
.project-task-draft-row input:hover { border-bottom-color:#8d9986; }
.project-task-draft-row input:focus { border-bottom-color:#526549; background:#f4f7f1; outline:none; }
.project-task-draft-name input { overflow:hidden; color:#526549; font-size:13px; font-weight:550; text-overflow:ellipsis; white-space:nowrap; }
.project-task-draft-budget { text-align:center; }
.project-task-draft-budget input { color:#2a3127; font-size:12px; text-align:center; }
.project-task-draft-logged { color:#686f64; font-size:12px; text-align:right; white-space:nowrap; }
.detail-task-editor.project-task-draft-editor .task-row-actions { grid-template-columns:repeat(2,32px); width:68px; }
.detail-task-editor.project-task-draft-editor .task-columns > span:last-child { width:68px; }
.detail-task-editor.project-task-draft-editor .project-task-draft-actions .btn-quiet { width:32px; padding:6px; justify-content:center; }
.project-task-draft-actions svg { flex-shrink:0; }
.project-task-draft-body > [data-project-task-drafts-target="empty"] { padding:24px 10px!important; text-align:left; }
@media(max-width:720px) { .project-task-draft-editor .task-columns,.project-task-draft-editor .project-task-draft-body { min-width:520px; } }
