/* Keep the board manageable as task history grows, in both themes. */
[data-page="tasks"] .kanban-column { min-height: 18rem; }
[data-page="tasks"] .task-list {
  max-height: clamp(18rem, 52svh, 38rem);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  padding: 3px;
  align-content: start;
}
.completed-toggle { width: 100%; justify-content: center; min-height: 38px; border: 1px solid var(--line-strong); }
.completed-summary { margin: 24px 10px; color: var(--muted); font-size: 12px; line-height: 1.8; text-align: center; }
.completed-search { display: grid; gap: 6px; margin: 16px 0 12px; color: var(--muted); font-size: 11px; font-weight: 600; }
.completed-search input { width: 100%; min-width: 0; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--text); font-size: 12px; }
.completed-search input::placeholder { color: var(--muted); }
.completed-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; margin: 0 3px 10px; color: var(--muted); font-size: 10px; }
.completed-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line-strong); }
.completed-pagination [data-completed-page] { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.completed-pagination .button { min-height: 36px; }
.completed-pagination .button:disabled { opacity: .45; cursor: default; }
[data-page="tasks"] [hidden] { display: none !important; }
@media (max-width: 640px) {
  [data-page="tasks"] .kanban-column { min-height: 0; }
  [data-page="tasks"] .task-list { max-height: 26rem; }
  .completed-search input { font-size: 16px; }
  .completed-toggle, .completed-pagination .button { min-height: 44px; }
}
