#tasks-content {
  padding-block: clamp(30px, 5vw, 65px);
}

.task-history-heading {
  flex-wrap: wrap;
  align-items: center;
}

.task-history-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 240px);
  gap: 12px;
  padding: clamp(14px, 2vw, 20px);
  margin-bottom: 14px;
}

.task-history-field {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.task-history-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.task-history-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: clamp(13px, 1.9vw, 20px);
}

.task-history-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px 14px;
}

.task-history-card h2 {
  min-width: 0;
  font-size: clamp(18px, 2.15vw, 23px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.task-history-meta,
.task-history-note {
  color: var(--muted);
  font-size: 13px;
}

.task-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 14px;
  overflow-wrap: anywhere;
}

.task-history-facts {
  margin-top: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.task-history-bill {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
}

.task-history-bill .account-fact {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 5px;
}

.task-history-bill dt {
  margin: 0;
}

.task-history-bill dd {
  font-size: 14px;
}

.task-history-results {
  gap: 7px;
}

.task-history-results .button {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.task-history-disclosure summary {
  width: fit-content;
  color: var(--blue-dark);
  cursor: pointer;
  font-size: 14px;
  font-weight: 680;
}

.task-history-disclosure[open] .task-history-results {
  margin-top: 8px;
}

.task-history-active,
.task-history-card-actions,
.task-history-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 12px;
}

.task-history-card-actions > :is(.task-history-note, details[open]) {
  flex-basis: 100%;
}

.task-history-progress {
  display: flex;
  flex: 1 1 220px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.task-history-progress progress {
  width: min(100%, 320px);
  min-width: 0;
  height: 9px;
  accent-color: var(--blue);
}

.task-history-pager {
  justify-content: space-between;
  margin-top: 14px;
}

@media (max-width: 680px) {
  .task-history-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .task-history-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }
}
