.asset-activity-section button,
.asset-activity-section input,
.asset-activity-section summary {
  font: inherit;
}

.activity-filters {
  align-items: start;
  border-bottom: 1px solid #e1e4ed;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.activity-lifecycle,
.activity-range,
.activity-filter-actions {
  grid-column: 1 / -1;
}

.activity-filter-label {
  color: #697087;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 7px;
}

.activity-segmented {
  background: #eceefa;
  border-radius: 6px;
  display: inline-flex;
  max-width: 100%;
  padding: 3px;
}

.activity-segmented button,
.activity-filter-actions button,
.activity-footer button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #535c76;
  font-size: 12px;
  font-weight: 800;
  min-height: 40px;
  padding: 0 14px;
}

.activity-segmented button.active {
  background: #fff;
  box-shadow: 0 1px 3px rgb(15 23 42 / 12%);
  color: #2f0eb6;
}

.activity-filter-group {
  background: #fff;
  border: 1px solid #dfe3ed;
  border-radius: 6px;
  min-width: 0;
}

.activity-filter-group summary {
  color: #343b57;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  list-style-position: inside;
  min-height: 42px;
  overflow-wrap: anywhere;
  padding: 12px;
}

.activity-filter-options {
  border-top: 1px solid #e5e7ef;
  display: grid;
  gap: 1px;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
}

.activity-filter-option {
  align-items: center;
  border-radius: 4px;
  color: #454d68;
  cursor: pointer;
  display: flex;
  font-size: 12px;
  gap: 9px;
  min-height: 36px;
  padding: 6px 7px;
}

.activity-filter-option:hover {
  background: #f3f1ff;
}

.activity-filter-option input {
  accent-color: #4a18cf;
  flex: 0 0 auto;
  height: 17px;
  width: 17px;
}

.activity-range {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.activity-range input {
  background: #fff;
  border: 1px solid #d9ddea;
  border-radius: 6px;
  color: #141a37;
  height: 42px;
  max-width: 100%;
  min-width: 0;
  padding: 0 10px;
  width: 100%;
}

.activity-range-copy {
  color: #737b94;
  font-size: 11px;
  grid-column: 1 / -1;
  margin: 0;
}

.activity-filter-actions,
.activity-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.activity-filter-actions button:first-child {
  background: #4a18cf;
  color: #fff;
}

.activity-filter-actions .secondary-action,
.activity-footer .secondary-action {
  background: #fff;
  border-color: #d9ddea;
  color: #4114bd;
}

.activity-filter-actions button[disabled],
.activity-filter-actions button[aria-disabled="true"],
.activity-footer button[disabled],
.activity-footer button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

.activity-summary {
  border-bottom: 1px solid #e1e4ed;
  margin-bottom: 18px;
  padding-bottom: 18px;
}

.activity-summary-counts {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 12px;
}

.activity-summary-counts > div {
  background: #fff;
  border: 1px solid #e3e6ef;
  min-width: 0;
  padding: 12px 14px;
}

.activity-summary-counts dt {
  color: #737b94;
  font-size: 11px;
  font-weight: 800;
}

.activity-summary-counts dd {
  color: #111735;
  font-size: 20px;
  font-weight: 800;
  margin: 3px 0 0;
}

.activity-summary-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.activity-count-chip {
  background: #eeebfb;
  border-radius: 999px;
  color: #4420a9;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
}

.activity-notice {
  color: #68718a;
  font-size: 12px;
  margin: 0 0 12px;
  min-height: 18px;
}

.activity-notice[data-tone="error"] {
  color: #b42318;
}

.activity-notice[data-tone="warning"] {
  color: #9a6700;
}

.activity-list {
  display: grid;
  gap: 9px;
}

.activity-row {
  background: #fff;
  border: 1px solid #e3e6ef;
  border-radius: 6px;
  min-width: 0;
  padding: 15px 16px;
}

.activity-row-header {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.activity-row-header > div {
  min-width: 0;
}

.activity-row h4 {
  color: #111735;
  font-size: 14px;
  letter-spacing: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.activity-row-subtitle {
  color: #697087;
  display: block;
  font-size: 11px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.activity-status {
  background: #eef0f5;
  border-radius: 999px;
  color: #586078;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  max-width: 45%;
  overflow-wrap: anywhere;
  padding: 4px 7px;
  text-align: center;
}

.activity-status-active,
.activity-status-scheduled,
.activity-status-succeeded {
  background: #e7f8ed;
  color: #067647;
}

.activity-status-failed,
.activity-status-blocked,
.activity-status-dispatch_blocked {
  background: #fff0ee;
  color: #b42318;
}

.activity-status-pending_dispatch,
.activity-status-queued,
.activity-status-running,
.activity-status-planned {
  background: #fff6df;
  color: #8a5b00;
}

.activity-row-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin: 13px 0 0;
}

.activity-row-facts > div {
  min-width: 110px;
}

.activity-row-facts dt {
  color: #7b8299;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 2px;
}

.activity-row-facts dd {
  color: #303852;
  font-size: 11px;
  margin: 0;
  overflow-wrap: anywhere;
}

.activity-state {
  color: #68718a;
  margin: 34px auto;
  max-width: 380px;
  text-align: center;
}

.activity-state-permission {
  color: #8a5b00;
}

.activity-footer {
  border-top: 1px solid #e1e4ed;
  margin-top: 18px;
  padding-top: 16px;
}

.timeline-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 10px minmax(0, 1fr);
}

.timeline-marker {
  background: #7555db;
  border-radius: 999px;
  height: 10px;
  margin-top: 4px;
  width: 10px;
}

.timeline-marker-lifecycle {
  background: #16806b;
}

.timeline-marker-publisher {
  background: #d05a28;
}

.timeline-marker-planner {
  background: #2e68c7;
}

.timeline-row-content {
  min-width: 0;
}

.activity-category-lifecycle {
  background: #e7f7f3;
  color: #116b5a;
}

.activity-category-publisher {
  background: #fff0e9;
  color: #9a3f19;
}

.activity-category-planner {
  background: #eaf1ff;
  color: #2457a7;
}

.asset-activity-section button:focus-visible,
.asset-activity-section input:focus-visible,
.asset-activity-section summary:focus-visible,
[data-asset-details-section-heading]:focus-visible {
  outline: 3px solid rgb(64 24 220 / 28%);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .activity-filters,
  .activity-range {
    grid-template-columns: 1fr;
  }

  .activity-range-copy {
    grid-column: 1;
  }

  .activity-segmented {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .activity-segmented button {
    min-height: 44px;
    min-width: 0;
    padding: 0 8px;
  }

  .activity-filter-actions button,
  .activity-footer button {
    min-height: 44px;
  }

  .activity-summary-counts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .activity-summary-counts > div {
    padding: 10px;
  }

  .activity-summary-counts dd {
    font-size: 18px;
  }

  .activity-row {
    padding: 14px;
  }

  .activity-row-header {
    gap: 9px;
  }

  .activity-row-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-row-facts > div {
    min-width: 0;
  }
}
