/* Status belongs to the row; titles stay uncluttered. Shared semantic colors
   retain the palette of every theme, including dark and VibeCodeLifeStyle. */
.tasks-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.tasks-navigation .tasks-tabs { margin-bottom: 0; }
@media (max-width: 480px) {
  .tasks-navigation, .tasks-navigation .tasks-tabs { gap: 6px; }
  html:root .tasks-navigation button { padding-inline: 12px; }
}
html:root .task-table tbody tr[data-status] { background: var(--task-row-bg, var(--surface)); transition: background-color .16s ease; }
html:root .task-table tbody tr[data-status="new"] { --task-row-bg: color-mix(in srgb, var(--theme-success-bg) 65%, var(--surface)); }
html:root .task-table tbody tr[data-status="completed"] { --task-row-bg: color-mix(in srgb, var(--theme-warning-bg) 65%, var(--surface)); }
html:root .task-table tbody tr[data-status="in_progress"] { --task-row-bg: color-mix(in srgb, var(--theme-info-bg) 55%, var(--surface)); }
html:root .task-table tbody tr[data-status="cancelled"] { --task-row-bg: color-mix(in srgb, var(--theme-soft) 60%, var(--surface)); }
html:root .task-table tbody tr[data-status]:is(:hover,:focus-within) { background: color-mix(in srgb, var(--task-row-bg) 88%, var(--accent) 12%); }
html:root .task-table tbody tr[data-status] > td { background: transparent; }
html:root .task-row-title { line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
html:root .task-table tr[data-status="completed"] .task-row-title { text-decoration:line-through; text-decoration-thickness:1.5px; }
.task-completed { display:block; width:fit-content; margin-top:6px; padding:2px 8px; border-radius:6px; background:var(--theme-success-bg); color:var(--theme-success); font-size:.75rem; font-weight:650; }
html:root #task-show-completed[aria-pressed="true"] { background:var(--theme-success-bg); color:var(--theme-success); border-color:var(--theme-success); }
#task-preference-status:empty { display:none; }
html:root button.task-project-link { display: flex; align-items: baseline; gap: 7px; width: fit-content; max-width: 100%; min-height: 32px; margin-top: 6px; padding: 3px 0; border: 0; background: transparent; color: var(--text-secondary); box-shadow: none; text-align: left; font-size: .78rem; font-weight: 400; line-height: 1.5; white-space: normal; }
html:root button.task-project-link:hover { background: transparent; color: var(--accent); }
.task-project-link:hover > span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.task-project-link > span:last-child { overflow-wrap: anywhere; }
.task-project-arrow { flex: 0 0 auto; color: var(--accent); font-size: 1.1rem; }
.task-row-pin { display: inline-block; margin-right: 6px; color: var(--accent); font-size: 1rem; font-weight: 400; }
.task-row-pin svg { width: 15px; height: 15px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 700px) {
  html:root .task-table td.task-activity-cell { display: grid; grid-template-columns: 105px minmax(0,1fr); gap: 6px 12px; }
  html:root .task-activity-cell .view-receipt { grid-column: 2; justify-self: start; min-width: 0; max-width: 100%; margin: 0; white-space: normal; text-align: left; }
  .task-activity-cell .view-receipt svg { flex: 0 0 16px; }
}
@media (pointer: coarse) { html:root button.task-project-link { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { html:root .task-table tbody tr[data-status] { transition: none; } }
@media (max-width:700px) {
  html:root #tasks-view .tasks-heading { flex-direction:row; align-items:center; gap:8px; padding:12px; margin-bottom:10px; }
  html:root #tasks-view .tasks-heading :is(.eyebrow,.muted) { display:none; }
  html:root #tasks-view .tasks-heading h1 { font-size:1.25rem; }
  html:root #tasks-view .tasks-heading button { flex:0 0 auto; padding-inline:12px; }
  html:root #tasks-view .tasks-navigation { margin-bottom:10px; gap:6px; }
  html:root #tasks-view .task-filters { padding:12px; }
  html:root #tasks-view .task-category-bar { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin-bottom:10px; }
  html:root #tasks-view .task-category-bar button { padding:6px; min-height:44px; font-size:.75rem; line-height:1.25; }
  html:root #tasks-view .task-category-bar #task-preference-status { grid-column:1 / -1; }
  html:root #tasks-view .task-filter-main { grid-template-columns:minmax(0,1fr) auto auto; gap:6px; }
  html:root #tasks-view .task-filter-main #task-search { grid-column:1; min-width:0; }
  html:root #tasks-view .task-filter-main select { display:none; }
  html:root #task-filters:not(:has(#task-filter-extra:not([hidden]))) :is(#task-show-completed,#task-filter-reset) { display:none; }
  html:root #task-filters:has(#task-filter-extra:not([hidden])) #task-filter-status { display:block; grid-row:2; grid-column:1; }
  html:root #task-filters:has(#task-filter-extra:not([hidden])) #task-filter-role { display:block; grid-row:2; grid-column:2 / -1; }
  html:root #task-filters:has(#task-filter-extra:not([hidden])) :is(#task-show-completed,#task-filter-reset) { grid-column:span 3; }
  html:root #tasks-view .task-mobile-sort { margin-top:10px; }
  html:root #tasks-view button.task-project-link { min-height:44px; }
}
