/* v0.14.3: preserve title width when comments/closure explanations are present. */
.task-grid .task-subtasks .task-body{display:block;min-width:0}
.task-grid .task-subtasks .task-heading{display:inline-flex;margin:0 0 4px}
.task-grid .task-subtasks .task-title{display:block;width:100%;max-width:100%;text-align:start;overflow-wrap:break-word;white-space:normal;line-height:1.45;-webkit-line-clamp:unset;overflow:visible}
.task-grid .task-subtasks .subtask-rows .task-row.nested{grid-template-columns:24px minmax(0,1fr);align-items:start;padding:12px;gap:8px}
.task-grid .task-subtasks .subtask-rows .task-row.nested>.task-state-mark{grid-column:1;grid-row:1;margin-top:2px}
.task-grid .task-subtasks .subtask-rows .task-row.nested>.task-body{grid-column:2;grid-row:1}
.task-grid .task-subtasks .subtask-rows .task-row.nested>.task-right{grid-column:2;grid-row:2;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;width:100%;min-width:0;max-width:none;border:0;padding:0;margin:0;text-align:start}
.task-grid .task-subtasks .completion-note{display:block;line-height:1.45;margin:6px 0 0;max-width:none}
.task-grid .task-subtasks .task-right .card-comments{width:auto;max-width:100%;flex:1 1 150px;min-width:0;margin:0;font-size:12px}
.task-grid .task-subtasks .task-right .task-actions{flex:0 0 auto;margin-inline-start:auto}
.task-grid .task-subtasks .task-actions>summary{min-width:40px;min-height:40px;display:grid;place-items:center}
#work-list[data-layout="cards"] .project-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),480px));justify-content:start;align-items:start}
#work-list[data-layout="cards"] .project-card{width:100%;max-width:none;box-sizing:border-box;padding:20px;gap:0}
#work-list[data-layout="cards"] .project-card>.project-title{margin:14px 0 8px}
#work-list[data-layout="cards"] .project-card>p:first-of-type{margin:0 0 12px;line-height:1.5}
#work-list[data-layout="cards"] .project-card>.meta{margin:0 0 6px;gap:5px}
#work-list[data-layout="cards"] .project-card .project-checklist{margin:10px 0;padding:10px 0}
#work-list[data-layout="cards"] .project-card .project-checklist li{align-items:flex-start;gap:9px;padding:5px 0;line-height:1.45}
#work-list[data-layout="cards"] .project-card>progress{margin:8px 0 0}
#work-list[data-layout="cards"] .project-card>p.small{margin:8px 0 12px;line-height:1.5}
#work-list[data-layout="cards"] .project-card>.card-comments{margin:0 0 12px}
#work-list[data-layout="cards"] .project-card .project-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
#work-list[data-layout="cards"] .project-card .project-actions>button{width:100%;min-width:0;min-height:42px;padding:9px 10px;text-align:center;border:1px solid #a6b8ae;border-radius:10px;background:#fffefa;box-sizing:border-box;font-size:12px;text-decoration:none}
#work-list[data-layout="cards"] .project-card .project-actions>button:hover{background:#f1f7ed}
@media(max-width:720px){
 #work-list[data-layout="cards"] .project-grid{grid-template-columns:minmax(0,1fr)}
 #work-list[data-layout="cards"] .project-card{padding:16px}
 .task-grid .task-subtasks .subtask-rows .task-row.nested{grid-template-columns:24px minmax(0,1fr);padding:12px 10px}
 .task-grid .task-subtasks .task-title{font-size:13px;line-height:1.5}
 .task-grid .task-subtasks .task-right .card-comments{font-size:11px;min-height:44px}
 .task-grid .task-subtasks .completion-note{font-size:11px}
 #work-list[data-layout="list"] .task-family>.task-row,.project-layout .task-grid .task-family>.task-row{grid-template-columns:28px minmax(0,1fr)}
 #work-list[data-layout="list"] .task-family>.task-row>.task-right,.project-layout .task-grid .task-family>.task-row>.task-right{grid-column:1/-1;grid-row:auto;max-width:none;min-width:0;justify-content:flex-start;flex-wrap:wrap}
}
