/* New task / Edit task (spec §5.6, WP6) — view-specific rules; form, picker and thumb basics live in components.css / views.css */

/* Desktop: left column max 640px, Summary 320px sticky (§5.6); 720–1023 stacks with the summary at the bottom */
.taskform-layout > :first-child { max-width: 640px; }
@media (min-width: 1024px) { .taskform-layout { grid-template-columns: minmax(0, 640px) 320px; justify-content: start; } }

/* Section rhythm */
.taskform .disclosure { border-top: 1px solid var(--border); padding-top: var(--s3); }
.taskform .split-row .radio-cards { margin-top: 4px; }
.taskform #verify-row { display: flex; flex-direction: column; gap: 2px; }
.taskform #verify-row .hint { font: var(--t-sm); color: var(--text-3); }

/* Summary card tones */
.summary-card .sum-line.warn .i { color: var(--warning-700); }
.summary-card .sum-line.alert .i { color: var(--danger-600); }
.summary-card .sum-line.alert span { color: var(--danger-text); }

/* Checklist builder: finished steps on Edit */
.checklist-builder .ck-row.done .ck-text { text-decoration: line-through; color: var(--text-3); }
.checklist-builder .ck-row .i.ck-check { color: var(--success-700); flex: 0 0 auto; }
.checklist-builder .add-row .btn { flex: 0 0 auto; }

/* Files: desktop drop zone (§5.6) */
.dropzone { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border: 2px dashed var(--border-strong); border-radius: var(--r-md); background: var(--surface-muted); color: var(--text-3); font: var(--t-sm); min-height: 64px; }
.dropzone .i { flex: 0 0 auto; color: var(--text-3); }
.dropzone > span { flex: 1 1 auto; min-width: 0; }
.dropzone.over { border-color: var(--brand-600); background: var(--brand-50); color: var(--text); }
.dropzone.over .i { color: var(--brand-600); }

/* Selected files (new) */
.taskform .thumb-wrap .thumb-meta { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 32px; }
.taskform .thumb-wrap .thumb-meta .btn-icon { color: var(--text-3); }
@media (hover: hover) and (pointer: fine) { .taskform .thumb-wrap .thumb-meta .btn-icon { width: 32px; height: 32px; } }

/* Existing attachments (Edit) */
.existing-files { display: flex; flex-direction: column; }
.file-row { display: flex; align-items: center; gap: var(--s3); min-height: 56px; border-bottom: 1px solid var(--border); }
.file-row:last-child { border-bottom: 0; }
.file-row .thumb { width: 48px; height: 48px; flex: 0 0 48px; }
.file-row .file-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.file-row .file-name { font: var(--t-body); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .file-meta { font: var(--t-caption); color: var(--text-3); }
.file-row .btn-icon { color: var(--text-3); flex: 0 0 auto; }

/* Phone: the fixed bottom bar carries the one primary action; Cancel lives in the header close under 560px (§5.6) */
@media (max-width: 719px) {
  .taskform .footnote { display: none; }
  .taskform .dropzone { display: none; }
}
