/* Kada Todo — a focused, page-scoped reading hierarchy.
 * Keep shared task rows, the 44px progress card and all interactions intact.
 * This file must not style Home, Growth, Inspiration or Projects.
 */
:is(.body-content,.page-preview-body):has(> .section > .todo-meters) {
  gap: 27px;
  align-content: flex-start;
}

:is(.body-content,.page-preview-body):has(> .section > .todo-meters) > .section {
  width: min(100%, 790px);
  min-width: 0;
}

/* Summary remains a fused, 44px, full-card progress treatment. */
:is(.body-content,.page-preview-body):has(> .section > .todo-meters) .todo-meters {
  gap: 10px;
}
:is(.body-content,.page-preview-body):has(> .section > .todo-meters) .todo-meters .meter {
  min-height: 44px;
  font-variant-numeric: tabular-nums;
}
:is(.body-content,.page-preview-body):has(> .section > .todo-meters) .todo-meters .meter:first-child .progress-labels {
  padding-inline: 14px;
}

/* The section title opens a calm, scan-friendly column. */
:is(.body-content,.page-preview-body):has(> .section > .todo-meters) > section.section {
  gap: 13px;
}
:is(.body-content,.page-preview-body):has(> .section > .todo-meters) > section.section .section-heading {
  gap: 10px;
  min-height: 20px;
  font-size: 13px;
  font-weight: 610;
  color: var(--app-text-muted);
}
:is(.body-content,.page-preview-body):has(> .section > .todo-meters) > section.section .section-heading::after {
  content: "";
  flex: 1;
  min-width: 16px;
  height: 1px;
  background: var(--app-border);
  opacity: .75;
}
:is(.body-content,.page-preview-body):has(> .section > .todo-meters) > .section:has(.todo-meters) + section.section .section-heading {
  font-size: 15px;
  font-weight: 670;
  color: var(--app-text);
}
:is(.body-content,.page-preview-body):has(> .section > .todo-meters) > .section:has(.todo-meters) + section.section .section-heading::before {
  content: "";
  width: 3px;
  height: 15px;
  flex: 0 0 3px;
  border-radius: 5px;
  background: var(--app-accent);
}

/* Preserve the shared 49px row; improve long-text and metadata scanning. */
:is(.body-content,.page-preview-body):has(> .section > .todo-meters) > section.section .list {
  gap: 7px;
  min-width: 0;
}
:is(.body-content,.page-preview-body):has(> .section > .todo-meters) > section.section .task-row {
  min-height: 49px;
  padding-inline: 13px;
  gap: 11px;
  transition: background-color .14s ease;
}
:is(.body-content,.page-preview-body):has(> .section > .todo-meters) > section.section .task-title {
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  line-height: 1.45;
  font-weight: 500;
}
:is(.body-content,.page-preview-body):has(> .section > .todo-meters) > section.section .check {
  flex-shrink: 0;
}
:is(.body-content,.page-preview-body):has(> .section > .todo-meters) > section.section .task-project {
  max-width: min(26%, 112px);
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--app-surface-raised);
  line-height: 1.35;
  flex-shrink: 1;
}
:is(.body-content,.page-preview-body):has(> .section > .todo-meters) > section.section .task-date {
  min-width: 35px;
  padding-left: 3px;
  text-align: right;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

/* Empty sections take less attention than actionable rows. */
:is(.body-content,.page-preview-body):has(> .section > .todo-meters) > section.section .muted-block {
  min-height: 54px;
  padding: 16px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--app-text-muted);
  border-color: var(--app-border);
  background: transparent;
}

@media (hover: hover) and (pointer: fine) {
  :is(.body-content,.page-preview-body):has(> .section > .todo-meters) > section.section .task-row:hover {
    background: var(--app-surface-raised);
  }
}
@media (max-width: 400px) {
  :is(.body-content,.page-preview-body):has(> .section > .todo-meters) {gap: 23px}
  :is(.body-content,.page-preview-body):has(> .section > .todo-meters) > section.section .task-row {gap: 9px;padding-inline: 11px}
  :is(.body-content,.page-preview-body):has(> .section > .todo-meters) > section.section .task-project {max-width: 74px}
  :is(.body-content,.page-preview-body):has(> .section > .todo-meters) > section.section .task-date {min-width: 33px}
}
@media (prefers-reduced-motion: reduce) {
  :is(.body-content,.page-preview-body):has(> .section > .todo-meters) > section.section .task-row {transition: none}
}
