.batch-story__endpoints {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--sub);
}

.batch-story__control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  border-top: 1px solid var(--line);
  padding: 18px 0 12px;
  margin-top: 22px;
}

.batch-story .batch-story__scenario {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 650;
}

.batch-story .batch-story__stat {
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.batch-story__input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 9px 12px;
  margin-bottom: 12px;
  background: #eef4f7;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--sub);
  font-size: 14px;
}

.batch-story__input-copy {
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px;
}

.batch-story__input-copy strong {
  color: var(--ink);
}

.batch-story[data-edited="true"] .batch-story__input {
  background: #edf9f3;
  border-color: #a8d7c4;
  color: #115749;
}

.batch-story__change {
  color: #115749;
  font-weight: 700;
  font-size: 13px;
}

.batch-story__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.batch-story__card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: #0b1c34;
}

.batch-story__card[data-changed="true"] {
  outline: 2px solid #138474;
  outline-offset: 1px;
}

.batch-story__card-caption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 7px 11px;
  background: #f4f7f9;
  color: var(--sub);
  font-size: 13px;
  font-weight: 600;
}

.batch-story__card[data-changed="true"] .batch-story__card-caption {
  background: #d9f4e9;
  color: #115749;
}

.batch-story__card-content {
  min-width: 0;
}

.batch-story__pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 12px;
  margin-top: 12px;
  color: var(--sub);
  font-size: 14px;
}

.batch-story button:disabled {
  opacity: .5;
  cursor: default;
}

.batch-story .batch-story__measurement {
  margin: 10px 0 0;
}

@media (max-width: 720px) {
  .batch-story__cards {
    grid-template-columns: 1fr;
  }
}
