.row-actions form,
.teacher-activity-row form {
  margin: 0;
}

.content-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.content-row-actions form,
.content-row-actions .publication-button,
.content-row-actions .action-button {
  width: 104px;
}

.publication-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green);
  border-radius: 8px;
  height: 34px;
  box-sizing: border-box;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.publication-button.published {
  border-color: #c9dfd2;
  background: var(--mint);
  color: var(--green);
}

.content-row-actions .action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}

.content-row-actions .action-button:hover {
  border-color: var(--line);
  background: #fff;
}

.content-row-actions .correction-action {
  color: var(--green);
}

.content-row-actions .edit-action {
  color: var(--muted);
}

.teacher-activity-row {
  justify-content: space-between;
}

.teacher-activity-row > a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.teacher-activity-row > a > span {
  display: grid;
  place-items: center;
  flex: 0 0 35px;
  height: 35px;
  background: var(--mint);
  border-radius: 9px;
  color: var(--green);
  font-weight: 800;
}

.teacher-activity-row > a > div {
  display: flex;
  flex-direction: column;
}

@media (max-width: 550px) {
  .content-row-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    box-sizing: border-box;
  }

  .content-row-actions form,
  .content-row-actions .publication-button,
  .content-row-actions .action-button {
    width: 100%;
  }

  .teacher-activity-row {
    align-items: stretch;
    flex-direction: column;
  }

  .teacher-activity-row .publication-button {
    width: 100%;
  }
}
